From 911c932ec426ee45c9380bd26714c4bb505a3a88 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 23 Mar 2025 12:47:10 +0800 Subject: Use a global struct with version and source info --- README.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 43f0feb..13492dc 100644 --- a/README.md +++ b/README.md @@ -23,20 +23,14 @@ a bit unnecessary. - Currently we round times to the nearest week for persistence, but this could cause issues if a user completes the challenge at the end of a rounded week. -## Installation +## Build -You need a working Go installation. Then either - -``` -go install go.lindenii.runxiyu.org/powxy@latest -``` - -or +You need a working Go installation. ``` git clone ssh://forge.lindenii.runxiyu.org/powxy/:/repos/powxy/ cd powxy -go install +make ``` ## Usage @@ -49,6 +43,8 @@ Usage of ./powxy: address to listen on (default ":8081") -secondary trust X-Forwarded-For headers + -source string + url to the source code (default "https://https://forge.lindenii.runxiyu.org/powxy/:/repos/powxy/") -upstream string destination url base to proxy to (default "http://127.0.0.1:8080") ``` -- cgit v1.2.3