1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-07-31 00:52:01 +00:00

Merge pull request #7387 from mailcow/fix/mfk25

Hardening mailcow
This commit is contained in:
FreddleSpl0it
2026-07-30 09:07:10 +02:00
committed by GitHub
8 changed files with 64 additions and 16 deletions
+5
View File
@@ -42,6 +42,11 @@ http {
https https;
}
map $server_port $sogo_auth_internal {
65510 "1";
default "";
}
{% if HTTP_REDIRECT %}
# HTTP to HTTPS redirect
server {
@@ -116,6 +116,8 @@ location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
# trusted internal-auth marker; empty for external clients (see nginx.conf map)
fastcgi_param SOGO_AUTH_INTERNAL $sogo_auth_internal;
fastcgi_read_timeout 3600;
fastcgi_send_timeout 3600;
}