redirect to https

This commit is contained in:
deflax 2025-01-29 17:10:06 +00:00
parent 62dae378a5
commit c8aa798e27

View file

@ -41,6 +41,7 @@ frontend web
bind :443 ssl crt /certificates strict-sni
http-request return status 200 content-type text/plain lf-string "%[path,field(-1,/)].${ACCOUNT_THUMBPRINT}\n" if { path_beg '/.well-known/acme-challenge/' }
http-request redirect scheme https code 301 unless { ssl_fc }
http-request set-header X-Forwarded-Protocol https
http-request set-header X-Forwarded-Proto https