mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-05 07:58:20 +00:00
[Nginx][Web] Pass the client address to sogo-auth for EAS/DAV logins
This commit is contained in:
3 files changed
+12
No files matched your search
@@ -47,6 +47,12 @@ http {
|
||||
default "";
|
||||
}
|
||||
|
||||
# client of an internal auth request, X-Real-IP is set by /sogo-auth-verify
|
||||
map $server_port $sogo_auth_client_ip {
|
||||
65510 $http_x_real_ip;
|
||||
default "";
|
||||
}
|
||||
|
||||
{% if HTTP_REDIRECT %}
|
||||
# HTTP to HTTPS redirect
|
||||
server {
|
||||
|
||||
@@ -119,6 +119,7 @@ location ~ \.php$ {
|
||||
fastcgi_param HTTP_X_REAL_IP $remote_addr;
|
||||
# trusted internal-auth marker; empty for external clients (see nginx.conf map)
|
||||
fastcgi_param SOGO_AUTH_INTERNAL $sogo_auth_internal;
|
||||
fastcgi_param SOGO_AUTH_CLIENT_IP $sogo_auth_client_ip;
|
||||
fastcgi_read_timeout 3600;
|
||||
fastcgi_send_timeout 3600;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user