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
err=options.AddFlag("globalauth", "--global-auth", "GHFS_GLOBAL_AUTH", "require Basic Auth for all directories")
64
+
serverError.CheckFatal(err)
65
+
66
+
err=options.AddFlagValues("authurls", "--auth", "", nil, "url path that require Basic Auth")
67
+
serverError.CheckFatal(err)
68
+
69
+
err=options.AddFlagValues("authurlsusers", "--auth-user", "", nil, "url path that require Basic Auth for specific users, <sep><url-path>[<sep><user>...]")
70
+
serverError.CheckFatal(err)
71
+
72
+
err=options.AddFlagValues("authdirs", "--auth-dir", "", nil, "file system path that require Basic Auth")
73
+
serverError.CheckFatal(err)
74
+
75
+
err=options.AddFlagValues("authdirsusers", "--auth-dir-user", "", nil, "file system path that require Basic Auth for specific users, <sep><fs-path>[<sep><user>...]")
76
+
serverError.CheckFatal(err)
77
+
45
78
err=options.AddFlagValues("globalrestrictaccess", "--global-restrict-access", "GHFS_GLOBAL_RESTRICT_ACCESS", []string{}, "restrict access to all url paths from current host, with optional extra allow list")
46
79
serverError.CheckFatal(err)
47
80
48
-
err=options.AddFlagValues("restrictaccessurls", "--restrict-access", "", []string{}, "restrict access to specific url paths from current host, with optional extra allow list")
81
+
err=options.AddFlagValues("restrictaccessurls", "--restrict-access", "", []string{}, "restrict access to specific url paths from current host, with optional extra allow list, <sep><url-path>[<sep><allowed-host>...]")
49
82
serverError.CheckFatal(err)
50
83
51
-
err=options.AddFlagValues("restrictaccessdirs", "--restrict-access-dir", "", []string{}, "restrict access to specific file system paths from current host, with optional extra allow list")
84
+
err=options.AddFlagValues("restrictaccessdirs", "--restrict-access-dir", "", []string{}, "restrict access to specific file system paths from current host, with optional extra allow list, <sep><fs-path>[<sep><allowed-host>...]")
52
85
serverError.CheckFatal(err)
53
86
54
87
err=options.AddFlagValues("globalheaders", "--global-header", "GHFS_GLOBAL_HEADER", []string{}, "custom headers for all url paths, e.g. <name>:<value>")
0 commit comments