[Nginx][Web] Client address and autodiscover adjustments

This commit is contained in:
FreddleSpl0it committed 2026-10-28 16:36:16 +01:00
1 parent 1b6fec6a89
commit 085d10118d
3 files changed
+51 -44

No files matched your search

+7
View File
@@ -47,6 +47,13 @@ http {
default "";
}
# Client address for PHP: on the internal sogo-auth listener nginx itself is the client,
# the real address comes from the X-Real-IP header set by /sogo-auth-verify
map $sogo_auth_internal $mailcow_client_ip {
"1" $http_x_real_ip;
default $remote_addr;
}
{% if HTTP_REDIRECT %}
# HTTP to HTTPS redirect
server {