webhooks can be vpntor:///outdir
This commit is contained in:
14
src/server/config.go
Normal file
14
src/server/config.go
Normal 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
|
||||
}()
|
||||
Reference in New Issue
Block a user