Merge pull request #670 from Eeemil/fix/https-redirects

Fix https redirects
This commit is contained in:
Simon L 2022-05-24 19:08:55 +02:00 committed by GitHub
commit 56b6425f46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,6 @@
{
# auto_https will create redirects for https://{host}:8443 instead of https://{host}
# https redirects are added manually in the http://:80 block
auto_https disable_redirects
storage file_system {
@ -6,6 +8,14 @@
}
}
http://:80 {
redir https://{host}{uri}
}
http://:8443 {
redir https://{host}:8443{uri}
}
https://:8443 {
reverse_proxy localhost:8000