Fix for double redirect

This commit is contained in:
Florian Zirker 2025-07-14 12:39:19 +02:00
parent 99b7827f19
commit 977593745e

View file

@ -93,9 +93,9 @@
}
@meet host meet.{$DOMAIN}
handle @meet {
reverse_proxy jitsi-meet-web:80
}
handle @meet {
reverse_proxy jitsi-meet-web:80
}
# Fallback unhandled (sub)domains
handle {
@ -112,6 +112,12 @@
}
}
# redirect URL without subdomain to www
{$DOMAIN} {
redir https://www.{$DOMAIN}{uri} permanent
}
# shortcut to prevent double redirect (http --> https AND without subdomain to www)
http://{$DOMAIN} {
redir https://www.{$DOMAIN}{uri} permanent
}