fix go vanity setup, handle www-stripping
1 file changed, 21 insertions(+), 1 deletion(-)
changed files
M Caddyfile → Caddyfile
@@ -85,7 +85,7 @@ flynet-butterfly-1123.fly.dev { respond "Hello, world!" } -alanpearce.eu, alin.ovh, www.alin.ovh, www.alanpearce.eu { +alanpearce.eu { import cache goatcounter {@@ -97,6 +97,26 @@ reverse_proxy https://homestead-homestead488.danubedata.run { header_up Host {hostport} } +} + +alin.ovh { + @notgo { + not query go-get=1 + not path /style.css + } + + handle @notgo { + redir https://alanpearce.eu{uri} + } + + reverse_proxy https://homestead-homestead488.danubedata.run { + header_up X-Forwarded-Host alanpearce.eu + header_up Host alanpearce.eu + } +} + +www.alin.ovh, www.alanpearce.eu { + redir https://alanpearce.eu{uri} permanent } uptime.alin.ovh,