docs: add environment variables and improve descriptions

This commit is contained in:
2025-05-06 07:26:39 +02:00
parent 666c9c9eb8
commit 1ff45f902e
3 changed files with 23 additions and 14 deletions

View File

@@ -21,7 +21,10 @@ func usage() {
func main() {
addr := "0.0.0.0:8080"
addr := os.Getenv("RCOND_ADDR")
if addr == "" {
addr = "0.0.0.0:8080"
}
if len(os.Args) > 1 {
addr = os.Args[1]
}