You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/main.go
+21-7
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ import (
12
12
"time"
13
13
14
14
"github.com/google/uuid"
15
+
"github.com/gorilla/csrf"
15
16
"imuslab.com/zoraxy/mod/access"
16
17
"imuslab.com/zoraxy/mod/acme"
17
18
"imuslab.com/zoraxy/mod/auth"
@@ -50,14 +51,15 @@ var ztAuthToken = flag.String("ztauth", "", "ZeroTier authtoken for the local no
50
51
varztAPIPort=flag.Int("ztport", 9993, "ZeroTier controller API port")
51
52
varrunningInDocker=flag.Bool("docker", false, "Run Zoraxy in docker compatibility mode")
52
53
varacmeAutoRenewInterval=flag.Int("autorenew", 86400, "ACME auto TLS/SSL certificate renew check interval (seconds)")
54
+
varacmeCertAutoRenewDays=flag.Int("earlyrenew", 30, "Number of days to early renew a soon expiring certificate (days)")
53
55
varenableHighSpeedGeoIPLookup=flag.Bool("fastgeoip", false, "Enable high speed geoip lookup, require 1GB extra memory (Not recommend for low end devices)")
54
56
varstaticWebServerRoot=flag.String("webroot", "./www", "Static web server root folder. Only allow chnage in start paramters")
55
57
varallowWebFileManager=flag.Bool("webfm", true, "Enable web file manager for static web server root folder")
56
58
varenableAutoUpdate=flag.Bool("cfgupgrade", true, "Enable auto config upgrade if breaking change is detected")
57
59
58
60
var (
59
61
name="Zoraxy"
60
-
version="3.0.9"
62
+
version="3.1.0"
61
63
nodeUUID="generic"//System uuid, in uuidv4 format
62
64
development=false//Set this to false to use embedded web fs
0 commit comments