Fix https redirects

Signed-off-by: Emil Marklund <emil@btlcomputing.com>
This commit is contained in:
Emil Marklund 2022-05-19 16:26:11 +02:00
parent be7d57cf9f
commit 8d0a2d3199

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 auto_https disable_redirects
storage file_system { storage file_system {
@ -6,6 +8,10 @@
} }
} }
http://:80 {
redir https://{host}{uri}
}
https://:8443 { https://:8443 {
reverse_proxy localhost:8000 reverse_proxy localhost:8000