История изменений
Исправление alexandrovich_ff, (текущая версия) :
Та не гори ты. У меня прописан client_max_body_size.
UPD: в http секции забыл. Спасибо.
Исходная версия alexandrovich_ff, :
Та не гори ты. У меня прописан client_max_body_size.
server {
# Порт
listen 443 ssl http2;
listen [::]:443 ssl http2;
port_in_redirect off;
ssi on;
# Логгирование
#access_log /dev/null;
#error_log /dev/null;
error_log /var/log/nginx/mail.error;
server_name mail.example.com www.mail.example.com;
# #--- Подключение модулей ---# #
include modules/pagespeed/optimize.conf;
# #--- SSL сертификаты ---# #
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1.3 TLSv1.2;
ssl_ciphers "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS";
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
# ssl files sha1
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
# Конфигурация RoundCube
rewrite ^/mail$ / redirect;
rewrite ^/mail/$ /index.php;
location / {
index index.php;
alias /usr/local/lib/roundcubemail/;
}
location ~ /config/.* {
return 403;
}
location ~ /.*\.php {
include fastcgi_params;
fastcgi_split_path_info ^/mail(/.*)()$;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/lib/roundcubemail/$fastcgi_script_name;
fastcgi_pass php-fpm;
client_max_body_size 128M;
}
# Конфигурация Z-Push
location /Microsoft-Server-ActiveSync {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/local/lib/z-push/index.php;
fastcgi_param PHP_VALUE "include_path=.:/usr/share/php:/usr/share/pear:/usr/share/awl/inc";
fastcgi_read_timeout 630;
fastcgi_pass php-fpm;
client_max_body_size 128M;
}
location ~* ^/autodiscover/autodiscover.xml$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/local/lib/z-push/autodiscover/autodiscover.php;
fastcgi_param PHP_VALUE "include_path=.:/usr/share/php:/usr/share/pear:/usr/share/awl/inc";
fastcgi_pass php-fpm;
}
}