From 1580e4b2a5cd548cfe0105c15244c9eac846462a Mon Sep 17 00:00:00 2001 From: andryyy Date: Sun, 6 Oct 2019 10:12:46 +0200 Subject: [PATCH] [Nginx, SOGo] Adjustments for EAS --- data/conf/nginx/site.conf | 19 +++++-------------- data/conf/sogo/sogo.conf | 6 +++--- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf index d55595f7..0658c466 100644 --- a/data/conf/nginx/site.conf +++ b/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; } diff --git a/data/conf/sogo/sogo.conf b/data/conf/sogo/sogo.conf index f9e9e077..46571a49 100644 --- a/data/conf/sogo/sogo.conf +++ b/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;