From e962c39e82f31e3d821e2c2f6cf2f34ae24138b0 Mon Sep 17 00:00:00 2001
From: Zhang Huangbin
Date: Mon, 11 Mar 2019 22:14:37 +0800
Subject: [PATCH] Fix nginx config file location.
---
en_US/howto/1-change.mail.attachment.size.md | 15 +++++++++------
html/change.mail.attachment.size.html | 14 ++++++++------
2 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/en_US/howto/1-change.mail.attachment.size.md b/en_US/howto/1-change.mail.attachment.size.md
index 9135d9ad..9e25b6d0 100644
--- a/en_US/howto/1-change.mail.attachment.size.md
+++ b/en_US/howto/1-change.mail.attachment.size.md
@@ -123,16 +123,19 @@ Restart Apache or php-fpm service to make it work.
## Change upload file size in Nginx
Find setting `client_max_body_size` in Nginx config file
-`/etc/nginx/nginx.conf`, change it to a proper value to match your need.
+`/etc/nginx/conf-enabled/client_max_body_size.conf`, change the size to a
+proper value to match your need.
+
+!!! attention
+
+ Old iRedMail releases set this parameter in `/etc/nginx/nginx.conf`.
```
-http {
- ...
- client_max_body_size 100m;
- ...
-}
+client_max_body_size 100m;
```
+Reloading or restarting Nginx service is required.
+
## Change file size limits in SOGo
SOGo config file is `/etc/sogo/sogo.conf` (Linux/OpenBSD) or
diff --git a/html/change.mail.attachment.size.html b/html/change.mail.attachment.size.html
index 29abb465..ed433b73 100644
--- a/html/change.mail.attachment.size.html
+++ b/html/change.mail.attachment.size.html
@@ -145,14 +145,16 @@ php_value post_max_size 100M
Restart Apache or php-fpm service to make it work.
Change upload file size in Nginx
Find setting client_max_body_size
in Nginx config file
-/etc/nginx/nginx.conf
, change it to a proper value to match your need.
-http {
- ...
- client_max_body_size 100m;
- ...
-}
+/etc/nginx/conf-enabled/client_max_body_size.conf
, change the size to a
+proper value to match your need.
+
+
Attention
+
Old iRedMail releases set this parameter in /etc/nginx/nginx.conf
.
+
+client_max_body_size 100m;
+Reloading or restarting Nginx service is required.
Change file size limits in SOGo
SOGo config file is /etc/sogo/sogo.conf
(Linux/OpenBSD) or
/usr/local/etc/sogo/sogo.conf
(FreeBSD), 2 settings are relevant to message size: