webhooks can be vpntor:///outdir

This commit is contained in:
bel
2025-05-05 21:23:59 -06:00
parent dbfd33f55e
commit 352eff2691
5 changed files with 43 additions and 16 deletions

14
src/server/config.go Normal file
View File

@@ -0,0 +1,14 @@
package server
import (
"os"
"strconv"
)
var Port = func() int {
port, _ := strconv.Atoi(os.Getenv("PORT"))
if port == 0 {
port = 10000
}
return port
}()