all repos — homestead @ b1d7005b034ac62dc850377155520a68a018e24e

Code for my website

Use fly proxy for TLS termination, using h2c

Alan Pearce
commit

b1d7005b034ac62dc850377155520a68a018e24e

parent

bc2a5e5e1fbdfb33f37e9f1f5ee1bd78d78eac9b

1 file changed, 15 insertions(+), 2 deletions(-)

changed files
M CaddyfileCaddyfile
@@ -1,16 +1,26 @@
{ admin off persist_config off - http_port 8080 + auto_https disable_redirects + acme_ca https://acme.zerossl.com/v2/DV90 + storage redis { + } + servers :80 { + protocols h1 h2c + trusted_proxies static private_ranges + } } :9091 { metrics } +http://, +http://alanpearce.uk, +http://www.alanpearce.uk, http://www.alanpearce.eu { header Cache-Control max-age=31536000 - redir https://alanpearce.eu{uri} + redir https://alanpearce.eu{uri} permanent } http://alanpearce.eu {
@@ -37,4 +47,7 @@ error /feed-styles/index.html* 404
respond /favicon.ico 204 redir /index.xml /atom.xml redir /post/index.xml /atom.xml + + @http header X-Forwarded-Proto http + redir @http https://alanpearce.eu{uri} }