aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFeuerfuchs <git@feuerfuchs.dev>2019-11-26 13:13:02 +0100
committerFeuerfuchs <git@feuerfuchs.dev>2019-11-26 13:13:02 +0100
commit93115f804220c31c2aa10f123560fb11135f06d8 (patch)
treea3c12f68c4263f3e34b1e03f12e7962aab9cfbf5 /cmd
parentFix title on startpage (diff)
downloadgopherproxy-93115f804220c31c2aa10f123560fb11135f06d8.tar.gz
gopherproxy-93115f804220c31c2aa10f123560fb11135f06d8.tar.bz2
gopherproxy-93115f804220c31c2aa10f123560fb11135f06d8.zip
Add IPv6 support, general restructuring
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gopherproxy/main.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/cmd/gopherproxy/main.go b/cmd/gopherproxy/main.go
deleted file mode 100644
index 6e6f48c..0000000
--- a/cmd/gopherproxy/main.go
+++ /dev/null
@@ -1,25 +0,0 @@
1package main
2
3import (
4 "flag"
5 "log"
6
7 "git.feuerfuchs.dev/Feuerfuchs/gopherproxy"
8)
9
10var (
11 // TODO: Allow config file and environment vars
12 // (opt -> env -> config -> default)
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")
15 robotsfile = flag.String("robots-file", "robots.txt", "robots.txt file")
16 robotsdebug = flag.Bool("robots-debug", false, "print output about ignored robots.txt")
17 vipsconcurrency = flag.Int("vips-concurrency", 1, "Concurrency level of libvips")
18)
19
20func main() {
21 flag.Parse()
22
23 // Use a config struct
24 log.Fatal(gopherproxy.ListenAndServe(*bind, *startpagefile, *robotsfile, *robotsdebug, *vipsconcurrency))
25}