6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 22:27:47 +00:00

Add X-Forwarded-Port header

This commit is contained in:
Ant1x 2021-02-26 22:33:24 +11:00 committed by Régis Behmo
parent 914dbc53be
commit 0c88d73914

View File

@ -1,5 +1,7 @@
{{ LMS_HOST }}{% if not ENABLE_HTTPS %}:80{% endif %} {
reverse_proxy nginx:80
reverse_proxy nginx:80 {
header_up X-Forwarded-Port {{ 443 if ENABLE_HTTPS else 80 }}
}
}
preview.{{ LMS_HOST }}{% if not ENABLE_HTTPS %}:80{% endif %} {
reverse_proxy nginx:80
@ -8,4 +10,4 @@ preview.{{ LMS_HOST }}{% if not ENABLE_HTTPS %}:80{% endif %} {
reverse_proxy nginx:80
}
{{ patch("caddyfile") }}
{{ patch("caddyfile") }}