diff --git a/conf/Caddyfile b/conf/Caddyfile index eb72323..0e3b2dc 100644 --- a/conf/Caddyfile +++ b/conf/Caddyfile @@ -25,11 +25,5 @@ https://, http:// { on_demand } - # initial PUT/POST for a new domain has to happen over HTTP - @upgrade `method('GET') && protocol('http')` - redir @upgrade https://{host}{uri} 301 - reverse_proxy http://localhost:3000 - header Alt-Svc `h3=":443"; persist=1, h2=":443"; persist=1` - encode } diff --git a/conf/config.example.toml b/conf/config.example.toml index bb37eb1..6de2997 100644 --- a/conf/config.example.toml +++ b/conf/config.example.toml @@ -6,9 +6,9 @@ log-level = "info" [server] # Use "-" to disable the handler. -pages = "tcp/:3000" -caddy = "tcp/:3001" -metrics = "tcp/:3002" +pages = "tcp/localhost:3000" +caddy = "tcp/localhost:3001" +metrics = "tcp/localhost:3002" [[wildcard]] # non-default section domain = "codeberg.page" diff --git a/src/config.go b/src/config.go index 841b054..c87c82f 100644 --- a/src/config.go +++ b/src/config.go @@ -74,9 +74,9 @@ type Config struct { } type ServerConfig struct { - Pages string `toml:"pages" default:"tcp/:3000"` - Caddy string `toml:"caddy" default:"tcp/:3001"` - Metrics string `toml:"metrics" default:"tcp/:3002"` + Pages string `toml:"pages" default:"tcp/localhost:3000"` + Caddy string `toml:"caddy" default:"tcp/localhost:3001"` + Metrics string `toml:"metrics" default:"tcp/localhost:3002"` } type WildcardConfig struct {