The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/xesite: move internal api to unprivileged port

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso 65b9829f 8d63fd1b

+17 -15
+1 -1
cmd/xesite/internalapi.go
··· 36 36 37 37 mux.Handle(adminpb.AdminPathPrefix, adminpb.NewAdminServer(&AdminAPI{fs: fs})) 38 38 39 - ln, err := net.Listen("tcp", ":80") 39 + ln, err := net.Listen("tcp", *internalAPIBind) 40 40 if err != nil { 41 41 log.Fatal(err) 42 42 }
+1
cmd/xesite/main.go
··· 26 26 gitBranch = flag.String("git-branch", "main", "Git branch to clone") 27 27 gitRepo = flag.String("git-repo", "https://github.com/Xe/site", "Git repository to clone") 28 28 githubSecret = flag.String("github-secret", "", "GitHub secret to use for webhooks") 29 + internalAPIBind = flag.String("internal-api-bind", ":3001", "Port to listen on for the internal API") 29 30 miToken = flag.String("mi-token", "", "Token to use for the mi API") 30 31 patreonSaasProxyURL = flag.String("patreon-saasproxy-url", "http://xesite-patreon-saasproxy.flycast", "URL to use for the patreon saasproxy") 31 32 siteURL = flag.String("site-url", "https://xeiaso.net/", "URL to use for the site")
+15 -14
fly/xesite/fly.toml
··· 17 17 GIT_BRANCH = "main" 18 18 SITE_URL = "https://xeiaso.net/" 19 19 PATH = "/bin" 20 + INTERNAL_API_BIND = ":80" 20 21 21 22 [[services]] 22 - internal_port = 3000 23 - processes = ["app"] 24 - protocol = "tcp" 23 + internal_port = 3000 24 + processes = ["app"] 25 + protocol = "tcp" 25 26 26 - [services.concurrency] 27 - hard_limit = 300 28 - soft_limit = 250 29 - type = "connections" 27 + [services.concurrency] 28 + hard_limit = 300 29 + soft_limit = 250 30 + type = "connections" 30 31 31 - [[services.ports]] 32 - force_https = true 33 - handlers = ["http"] 34 - port = 80 32 + [[services.ports]] 33 + force_https = true 34 + handlers = ["http"] 35 + port = 80 35 36 36 - [[services.ports]] 37 - handlers = ["tls", "http"] 38 - port = 443 37 + [[services.ports]] 38 + handlers = ["tls", "http"] 39 + port = 443