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: main.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ import (
9
9
"net/url"
10
10
"os"
11
11
"strings"
12
+
"time"
12
13
)
13
14
14
15
constVERSION="0.1.0"
@@ -23,6 +24,8 @@ var (
23
24
htpasswdFile=flag.String("htpasswd-file", "", "additionally authenticate against a htpasswd file. Entries must be created with \"htpasswd -s\" for SHA encryption")
24
25
cookieSecret=flag.String("cookie-secret", "", "the seed string for secure cookies")
25
26
cookieDomain=flag.String("cookie-domain", "", "an optional cookie domain to force cookies to")
27
+
cookieExpire=flag.Duration("cookie-expire", time.Duration(168)*time.Hour, "expire timeframe for cookie")
28
+
cookieHttpsOnly=flag.Bool("cookie-https-only", false, "set HTTPS only cookie")
26
29
authenticatedEmailsFile=flag.String("authenticated-emails-file", "", "authenticate against emails via file (one per line)")
0 commit comments