浏览代码

[Nginx, SOGo] Adjustments for EAS

andryyy 6 年之前
父节点
当前提交
1580e4b2a5
共有 2 个文件被更改,包括 8 次插入17 次删除
  1. 5 14
      data/conf/nginx/site.conf
  2. 3 3
      data/conf/sogo/sogo.conf

+ 5 - 14
data/conf/nginx/site.conf

@@ -161,23 +161,14 @@ server {
   location ^~ /Microsoft-Server-ActiveSync {
     include /etc/nginx/conf.d/sogo_proxy_auth.active;
     include /etc/nginx/conf.d/sogo_eas.active;
-    proxy_connect_timeout 4000;
-    proxy_next_upstream timeout error;
-    proxy_send_timeout 4000;
-    proxy_read_timeout 4000;
-    proxy_buffer_size 8k;
-    proxy_buffers 16 64k;
-    proxy_temp_file_write_size 64k;
-    proxy_busy_buffers_size 64k;
+    proxy_connect_timeout 75;
+    proxy_send_timeout 3600;
+    proxy_read_timeout 3600;
+    proxy_buffers 64 256k;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_set_header Host $http_host;
-    proxy_set_header x-webobjects-server-protocol HTTP/1.0;
-    proxy_set_header x-webobjects-remote-host $remote_addr;
-    proxy_set_header x-webobjects-server-name $server_name;
-    proxy_set_header x-webobjects-server-url $client_req_scheme://$http_host;
-    proxy_set_header x-webobjects-server-port $server_port;
-    client_body_buffer_size 128k;
+    client_body_buffer_size 512k;
     client_max_body_size 0;
   }
 

+ 3 - 3
data/conf/sogo/sogo.conf

@@ -37,7 +37,7 @@
     SOGoMailingMechanism = smtp;
     SOGoSMTPAuthenticationType = plain;
 
-    SxVMemLimit = 384;
+    SxVMemLimit = 512;
 
     SOGoMaximumPingInterval = 3540;
 
@@ -49,8 +49,8 @@
     // This should do the trick for Outlook 2016
     SOGoMaximumSyncResponseSize = 512;
 
-    WOWatchDogRequestTimeout = 20;
-    WOListenQueueSize = 300;
+    WOWatchDogRequestTimeout = 30;
+    WOListenQueueSize = 512;
     WONoDetach = YES;
 
     SOGoIMAPAclConformsToIMAPExt = Yes;