2017-09-09 18:10:36 +02:00
|
|
|
server_tokens off;
|
2017-09-11 17:37:25 +02:00
|
|
|
|
2017-07-30 21:39:35 +02:00
|
|
|
# includes to http {
|
2017-01-21 12:46:56 +02:00
|
|
|
proxy_cache_path /tmp levels=1:2 keys_zone=sogo:10m inactive=24h max_size=1g;
|
2017-07-30 21:39:35 +02:00
|
|
|
server_names_hash_bucket_size 64;
|
|
|
|
# }
|
|
|
|
|
2017-05-03 22:26:10 +02:00
|
|
|
map $http_x_forwarded_proto $client_req_scheme {
|
|
|
|
default $scheme;
|
|
|
|
https https;
|
|
|
|
}
|
2017-09-09 18:10:36 +02:00
|
|
|
|
2016-12-09 21:39:02 +02:00
|
|
|
server {
|
2017-02-28 11:02:02 +02:00
|
|
|
include /etc/nginx/conf.d/listen_ssl.active;
|
2017-02-08 20:11:25 +02:00
|
|
|
include /etc/nginx/mime.types;
|
2017-01-25 20:04:01 +02:00
|
|
|
charset utf-8;
|
|
|
|
override_charset on;
|
2016-12-22 13:20:26 +02:00
|
|
|
ssl on;
|
|
|
|
ssl_certificate /etc/ssl/mail/cert.pem;
|
|
|
|
ssl_certificate_key /etc/ssl/mail/key.pem;
|
|
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
|
ssl_prefer_server_ciphers on;
|
2017-01-09 21:22:44 +02:00
|
|
|
ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA';
|
2017-09-09 18:10:36 +02:00
|
|
|
|
2017-09-11 17:37:25 +02:00
|
|
|
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains";
|
|
|
|
|
|
|
|
#ssl_session_cache shared:SSL:50m;
|
|
|
|
#ssl_session_timeout 1d;
|
|
|
|
#ssl_session_tickets off;
|
2017-09-09 18:10:36 +02:00
|
|
|
|
2017-09-11 17:37:25 +02:00
|
|
|
#add_header X-Frame-Options SAMEORIGIN;
|
|
|
|
#add_header X-Content-Type-Options nosniff;
|
|
|
|
#add_header X-XSS-Protection "1; mode=block";
|
|
|
|
#add_header Referrer-Policy: no-referrer-when-downgrade;
|
|
|
|
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload";
|
2017-09-09 18:10:36 +02:00
|
|
|
|
2016-12-22 13:20:26 +02:00
|
|
|
ssl_ecdh_curve secp384r1;
|
|
|
|
index index.php index.html;
|
2017-02-28 11:12:18 +02:00
|
|
|
include /etc/nginx/conf.d/server_name.active;
|
2016-12-22 13:20:26 +02:00
|
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
access_log /var/log/nginx/access.log;
|
2017-05-03 18:05:13 +02:00
|
|
|
absolute_redirect off;
|
2016-12-22 13:20:26 +02:00
|
|
|
root /web;
|
2016-12-09 21:39:02 +02:00
|
|
|
|
2017-04-29 16:36:41 +02:00
|
|
|
location ~ ^/api/v1/(.*)$ {
|
|
|
|
try_files $uri $uri/ /json_api.php?query=$1;
|
2017-03-28 11:51:31 +02:00
|
|
|
}
|
|
|
|
|
2017-02-28 15:27:19 +02:00
|
|
|
location ^~ /.well-known/acme-challenge/ {
|
2017-06-14 23:10:50 +02:00
|
|
|
allow all;
|
2017-02-28 15:27:19 +02:00
|
|
|
default_type "text/plain";
|
|
|
|
}
|
|
|
|
|
2017-02-23 17:05:29 +02:00
|
|
|
# If behind reverse proxy, forwards the correct IP
|
|
|
|
set_real_ip_from 172.22.1.1;
|
|
|
|
real_ip_header X-Forwarded-For;
|
|
|
|
real_ip_recursive on;
|
|
|
|
|
2017-06-14 23:14:41 +02:00
|
|
|
rewrite ^/.well-known/caldav$ /SOGo/dav/ permanent;
|
2017-06-14 23:17:31 +02:00
|
|
|
rewrite ^/.well-known/carddav$ /SOGo/dav/ permanent;
|
2017-06-14 23:14:41 +02:00
|
|
|
|
2017-06-14 23:10:50 +02:00
|
|
|
location ^~ /principals {
|
|
|
|
return 301 /SOGo/dav;
|
2016-12-27 21:28:30 +02:00
|
|
|
}
|
|
|
|
|
2016-12-22 13:20:26 +02:00
|
|
|
location ~ \.php$ {
|
|
|
|
try_files $uri =404;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_pass phpfpm:9000;
|
|
|
|
fastcgi_index index.php;
|
2017-02-08 20:11:25 +02:00
|
|
|
include /etc/nginx/fastcgi_params;
|
2016-12-22 13:20:26 +02:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
2017-01-03 12:47:09 +02:00
|
|
|
fastcgi_param PHP_VALUE "max_execution_time = 1200
|
|
|
|
max_input_time = 1200
|
|
|
|
memory_limit = 64M";
|
|
|
|
fastcgi_read_timeout 1200;
|
2016-12-22 13:20:26 +02:00
|
|
|
}
|
2016-12-09 21:39:02 +02:00
|
|
|
|
2016-12-22 13:20:26 +02:00
|
|
|
location /rspamd/ {
|
2017-02-02 11:09:44 +02:00
|
|
|
proxy_pass http://172.22.1.253:11334/;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2016-12-22 13:20:26 +02:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2017-02-23 17:05:29 +02:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_redirect off;
|
2016-12-22 13:20:26 +02:00
|
|
|
}
|
2016-12-09 21:39:02 +02:00
|
|
|
|
2017-06-15 23:03:10 +02:00
|
|
|
location ~* ^/Autodiscover/Autodiscover.xml {
|
2017-05-03 22:26:10 +02:00
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_pass phpfpm:9000;
|
|
|
|
include /etc/nginx/fastcgi_params;
|
2017-02-28 15:27:19 +02:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
try_files /autodiscover.php =404;
|
2016-12-22 13:20:26 +02:00
|
|
|
}
|
2016-12-21 13:16:05 +02:00
|
|
|
|
2017-02-28 15:27:19 +02:00
|
|
|
location ~ /(?:m|M)ail/(?:c|C)onfig-v1.1.xml {
|
2017-05-03 22:26:10 +02:00
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_pass phpfpm:9000;
|
|
|
|
include /etc/nginx/fastcgi_params;
|
2017-02-28 15:27:19 +02:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
try_files /autoconfig.php =404;
|
2016-12-22 13:20:26 +02:00
|
|
|
}
|
2016-12-21 13:16:05 +02:00
|
|
|
|
2016-12-22 13:20:26 +02:00
|
|
|
location ^~ /Microsoft-Server-ActiveSync {
|
2017-02-02 11:09:44 +02:00
|
|
|
proxy_pass http://172.22.1.252:20000/SOGo/Microsoft-Server-ActiveSync;
|
2016-12-22 13:20:26 +02:00
|
|
|
proxy_connect_timeout 1000;
|
|
|
|
proxy_next_upstream timeout error;
|
|
|
|
proxy_send_timeout 1000;
|
|
|
|
proxy_read_timeout 1000;
|
|
|
|
proxy_buffer_size 8k;
|
|
|
|
proxy_buffers 4 32k;
|
|
|
|
proxy_temp_file_write_size 64k;
|
|
|
|
proxy_busy_buffers_size 64k;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2016-12-22 13:20:26 +02:00
|
|
|
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;
|
2017-05-03 22:26:10 +02:00
|
|
|
proxy_set_header x-webobjects-server-url $client_req_scheme://$http_host;
|
2017-04-25 10:49:38 +02:00
|
|
|
proxy_set_header x-webobjects-server-port $server_port;
|
2016-12-22 13:20:26 +02:00
|
|
|
client_body_buffer_size 128k;
|
2017-08-09 10:17:27 +02:00
|
|
|
client_max_body_size 0;
|
2016-12-22 13:20:26 +02:00
|
|
|
}
|
2016-12-09 21:39:02 +02:00
|
|
|
|
2016-12-22 13:20:26 +02:00
|
|
|
location ^~ /SOGo {
|
2017-02-02 11:09:44 +02:00
|
|
|
proxy_pass http://172.22.1.252:20000;
|
2016-12-22 13:20:26 +02:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2016-12-22 13:20:26 +02:00
|
|
|
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;
|
2017-05-03 22:26:10 +02:00
|
|
|
proxy_set_header x-webobjects-server-url $client_req_scheme://$http_host;
|
2017-04-25 10:49:38 +02:00
|
|
|
proxy_set_header x-webobjects-server-port $server_port;
|
2016-12-22 13:20:26 +02:00
|
|
|
client_body_buffer_size 128k;
|
2017-08-09 10:17:27 +02:00
|
|
|
client_max_body_size 0;
|
2016-12-22 13:20:26 +02:00
|
|
|
break;
|
|
|
|
}
|
2016-12-09 21:39:02 +02:00
|
|
|
|
2016-12-22 13:20:26 +02:00
|
|
|
location /SOGo.woa/WebServerResources/ {
|
2017-02-02 11:09:44 +02:00
|
|
|
proxy_pass http://172.22.1.252:9192/WebServerResources/;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-02-23 17:05:29 +02:00
|
|
|
proxy_cache sogo;
|
|
|
|
proxy_cache_valid 200 1d;
|
|
|
|
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
|
|
|
|
#alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
|
|
|
allow all;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /.woa/WebServerResources/ {
|
|
|
|
proxy_pass http://172.22.1.252:9192/WebServerResources/;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-01-21 12:46:56 +02:00
|
|
|
proxy_cache sogo;
|
|
|
|
proxy_cache_valid 200 1d;
|
|
|
|
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
|
|
|
|
#alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
2016-12-22 13:20:26 +02:00
|
|
|
allow all;
|
|
|
|
}
|
2016-12-09 21:39:02 +02:00
|
|
|
|
2016-12-22 13:20:26 +02:00
|
|
|
location /SOGo/WebServerResources/ {
|
2017-02-02 11:09:44 +02:00
|
|
|
proxy_pass http://172.22.1.252:9192/WebServerResources/;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-01-21 12:46:56 +02:00
|
|
|
proxy_cache sogo;
|
|
|
|
proxy_cache_valid 200 1d;
|
|
|
|
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
|
|
|
|
#alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
2016-12-22 13:20:26 +02:00
|
|
|
allow all;
|
|
|
|
}
|
2016-12-09 21:39:02 +02:00
|
|
|
|
2016-12-22 13:20:26 +02:00
|
|
|
location (^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources/.*\.(jpg|png|gif|css|js)$ {
|
2017-02-02 11:09:44 +02:00
|
|
|
proxy_pass http://172.22.1.252:9192/$1.SOGo/Resources/$2;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-01-21 12:46:56 +02:00
|
|
|
proxy_cache sogo;
|
|
|
|
proxy_cache_valid 200 1d;
|
|
|
|
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
|
|
|
|
#alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
|
2016-12-22 13:20:26 +02:00
|
|
|
}
|
2016-12-09 21:39:02 +02:00
|
|
|
}
|
2017-02-28 11:02:02 +02:00
|
|
|
server {
|
|
|
|
include /etc/nginx/conf.d/listen_plain.active;
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
charset utf-8;
|
|
|
|
override_charset on;
|
|
|
|
index index.php index.html;
|
2017-02-28 11:12:18 +02:00
|
|
|
include /etc/nginx/conf.d/server_name.active;
|
2017-02-28 11:02:02 +02:00
|
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
access_log /var/log/nginx/access.log;
|
2017-05-03 18:05:13 +02:00
|
|
|
absolute_redirect off;
|
2017-02-28 11:02:02 +02:00
|
|
|
root /web;
|
|
|
|
|
2017-04-29 16:36:41 +02:00
|
|
|
location ~ ^/api/v1/(.*)$ {
|
|
|
|
try_files $uri $uri/ /json_api.php?query=$1;
|
2017-03-28 11:51:31 +02:00
|
|
|
}
|
|
|
|
|
2017-02-28 15:27:19 +02:00
|
|
|
location ^~ /.well-known/acme-challenge/ {
|
2017-06-14 23:10:50 +02:00
|
|
|
allow all;
|
2017-02-28 15:27:19 +02:00
|
|
|
default_type "text/plain";
|
|
|
|
}
|
|
|
|
|
2017-02-28 11:02:02 +02:00
|
|
|
# If behind reverse proxy, forwards the correct IP
|
|
|
|
set_real_ip_from 172.22.1.1;
|
|
|
|
real_ip_header X-Forwarded-For;
|
|
|
|
real_ip_recursive on;
|
|
|
|
|
2017-06-14 23:14:41 +02:00
|
|
|
rewrite ^/.well-known/caldav$ /SOGo/dav/ permanent;
|
2017-06-14 23:17:31 +02:00
|
|
|
rewrite ^/.well-known/carddav$ /SOGo/dav/ permanent;
|
2017-06-14 23:14:41 +02:00
|
|
|
|
2017-06-14 23:10:50 +02:00
|
|
|
location ^~ /principals {
|
|
|
|
return 301 /SOGo/dav;
|
2017-02-28 11:02:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
try_files $uri =404;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_pass phpfpm:9000;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
include /etc/nginx/fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
|
fastcgi_param PHP_VALUE "max_execution_time = 1200
|
|
|
|
max_input_time = 1200
|
|
|
|
memory_limit = 64M";
|
|
|
|
fastcgi_read_timeout 1200;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /rspamd/ {
|
|
|
|
proxy_pass http://172.22.1.253:11334/;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-02-28 11:02:02 +02:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_redirect off;
|
2017-02-28 11:02:02 +02:00
|
|
|
}
|
|
|
|
|
2017-06-15 23:03:10 +02:00
|
|
|
location ~* ^/Autodiscover/Autodiscover.xml {
|
2017-05-03 22:26:10 +02:00
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_pass phpfpm:9000;
|
|
|
|
include /etc/nginx/fastcgi_params;
|
2017-02-28 15:27:19 +02:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
try_files /autodiscover.php =404;
|
2017-02-28 11:02:02 +02:00
|
|
|
}
|
|
|
|
|
2017-02-28 15:27:19 +02:00
|
|
|
location ~ /(?:m|M)ail/(?:c|C)onfig-v1.1.xml {
|
2017-05-03 22:26:10 +02:00
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_pass phpfpm:9000;
|
|
|
|
include /etc/nginx/fastcgi_params;
|
2017-02-28 15:27:19 +02:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
try_files /autoconfig.php =404;
|
2017-02-28 11:02:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location ^~ /Microsoft-Server-ActiveSync {
|
|
|
|
proxy_pass http://172.22.1.252:20000/SOGo/Microsoft-Server-ActiveSync;
|
|
|
|
proxy_connect_timeout 1000;
|
|
|
|
proxy_next_upstream timeout error;
|
|
|
|
proxy_send_timeout 1000;
|
|
|
|
proxy_read_timeout 1000;
|
|
|
|
proxy_buffer_size 8k;
|
|
|
|
proxy_buffers 4 32k;
|
|
|
|
proxy_temp_file_write_size 64k;
|
|
|
|
proxy_busy_buffers_size 64k;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-02-28 11:02:02 +02:00
|
|
|
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;
|
2017-05-03 22:26:10 +02:00
|
|
|
proxy_set_header x-webobjects-server-url $client_req_scheme://$http_host;
|
2017-04-25 10:49:38 +02:00
|
|
|
proxy_set_header x-webobjects-server-port $server_port;
|
2017-02-28 11:02:02 +02:00
|
|
|
client_body_buffer_size 128k;
|
2017-08-09 10:17:27 +02:00
|
|
|
client_max_body_size 0;
|
2017-02-28 11:02:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location ^~ /SOGo {
|
|
|
|
proxy_pass http://172.22.1.252:20000;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-02-28 11:02:02 +02:00
|
|
|
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;
|
2017-05-03 22:26:10 +02:00
|
|
|
proxy_set_header x-webobjects-server-url $client_req_scheme://$http_host;
|
2017-04-25 10:49:38 +02:00
|
|
|
proxy_set_header x-webobjects-server-port $server_port;
|
2017-02-28 11:02:02 +02:00
|
|
|
client_body_buffer_size 128k;
|
2017-08-09 10:17:27 +02:00
|
|
|
client_max_body_size 0;
|
2017-02-28 11:02:02 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /SOGo.woa/WebServerResources/ {
|
|
|
|
proxy_pass http://172.22.1.252:9192/WebServerResources/;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-02-28 11:02:02 +02:00
|
|
|
proxy_cache sogo;
|
|
|
|
proxy_cache_valid 200 1d;
|
|
|
|
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
|
|
|
|
#alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
|
|
|
allow all;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /.woa/WebServerResources/ {
|
|
|
|
proxy_pass http://172.22.1.252:9192/WebServerResources/;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-02-28 11:02:02 +02:00
|
|
|
proxy_cache sogo;
|
|
|
|
proxy_cache_valid 200 1d;
|
|
|
|
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
|
|
|
|
#alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
|
|
|
allow all;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /SOGo/WebServerResources/ {
|
|
|
|
proxy_pass http://172.22.1.252:9192/WebServerResources/;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-02-28 11:02:02 +02:00
|
|
|
proxy_cache sogo;
|
|
|
|
proxy_cache_valid 200 1d;
|
|
|
|
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
|
|
|
|
#alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
|
|
|
allow all;
|
|
|
|
}
|
|
|
|
|
|
|
|
location (^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources/.*\.(jpg|png|gif|css|js)$ {
|
|
|
|
proxy_pass http://172.22.1.252:9192/$1.SOGo/Resources/$2;
|
2017-05-03 18:05:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-02-28 11:02:02 +02:00
|
|
|
proxy_cache sogo;
|
|
|
|
proxy_cache_valid 200 1d;
|
|
|
|
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
|
|
|
|
#alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
|
|
|
|
}
|
|
|
|
|
2017-04-26 23:37:55 +02:00
|
|
|
}
|