aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/port
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-07-24 09:46:59 +0200
committerVolpeon <git@volpeon.ink>2021-07-24 09:46:59 +0200
commit38485ede265d22e11a316b4d66de1bf0feb945be (patch)
tree72388107a2bfe9e8e972feccd4f9c7d542d37b60 /cmd/port
parentAdd underline to nav protocol (diff)
downloadgopherproxy-38485ede265d22e11a316b4d66de1bf0feb945be.tar.gz
gopherproxy-38485ede265d22e11a316b4d66de1bf0feb945be.tar.bz2
gopherproxy-38485ede265d22e11a316b4d66de1bf0feb945be.zip
Diffstat (limited to 'cmd/port')
-rw-r--r--cmd/port/main.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/cmd/port/main.go b/cmd/port/main.go
deleted file mode 100644
index 6cdccc6..0000000
--- a/cmd/port/main.go
+++ /dev/null
@@ -1,25 +0,0 @@
1package main
2
3import (
4 "flag"
5 "log"
6
7 port "git.vulpes.one/Feuerfuchs/port/internal/port"
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(port.ListenAndServe(*bind, *startpagefile, *robotsfile, *robotsdebug, *vipsconcurrency))
25}