aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/gopherproxy/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/gopherproxy/main.go')
-rw-r--r--cmd/gopherproxy/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/gopherproxy/main.go b/cmd/gopherproxy/main.go
index e84e978..6e6f48c 100644
--- a/cmd/gopherproxy/main.go
+++ b/cmd/gopherproxy/main.go
@@ -11,6 +11,7 @@ var (
11 // TODO: Allow config file and environment vars 11 // TODO: Allow config file and environment vars
12 // (opt -> env -> config -> default) 12 // (opt -> env -> config -> default)
13 bind = flag.String("bind", "0.0.0.0:8000", "[int]:port to bind to") 13 bind = flag.String("bind", "0.0.0.0:8000", "[int]:port to bind to")
14 startpagefile = flag.String("startpage-file", "startpage.txt", "Default page to display if no URL is specified")
14 robotsfile = flag.String("robots-file", "robots.txt", "robots.txt file") 15 robotsfile = flag.String("robots-file", "robots.txt", "robots.txt file")
15 robotsdebug = flag.Bool("robots-debug", false, "print output about ignored robots.txt") 16 robotsdebug = flag.Bool("robots-debug", false, "print output about ignored robots.txt")
16 vipsconcurrency = flag.Int("vips-concurrency", 1, "Concurrency level of libvips") 17 vipsconcurrency = flag.Int("vips-concurrency", 1, "Concurrency level of libvips")
@@ -20,5 +21,5 @@ func main() {
20 flag.Parse() 21 flag.Parse()
21 22
22 // Use a config struct 23 // Use a config struct
23 log.Fatal(gopherproxy.ListenAndServe(*bind, *robotsfile, *robotsdebug, *vipsconcurrency)) 24 log.Fatal(gopherproxy.ListenAndServe(*bind, *startpagefile, *robotsfile, *robotsdebug, *vipsconcurrency))
24} 25}