aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web/main.go')
-rw-r--r--cmd/web/main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/web/main.go b/cmd/web/main.go
index 7475478..c799624 100644
--- a/cmd/web/main.go
+++ b/cmd/web/main.go
@@ -32,6 +32,11 @@ func main() {
debug := fl.Bool("d", false, "Print line numbers in log")
fl.StringVar(&Listen, "l", Listen, "What address do we listen on?")
fl.StringVar(&DefaultLib, "L", DefaultLib, "Full path to default library")
+ fl.StringVar(&isLocalCIDR, "t", isLocalCIDR,
+ "Trusted CIDRs for additional controls, seperated by commas")
+ fl.StringVar(&shareLink, "s", shareLink, "Share link, if blank make an educated guess")
+ isDemo := fl.Bool("demo", false,
+ "Whether or not to run in demo mode. You probably don't want this on.")
fl.Parse(os.Args[1:])
if *debug {
@@ -43,6 +48,10 @@ func main() {
Logger.Fatal(err)
}
+ if *isDemo {
+ a.Demo = true
+ }
+
go a.installer()
r := mux.NewRouter()