|
@@ -7,13 +7,6 @@ map $http_x_forwarded_proto $client_req_scheme {
|
|
|
https https;
|
|
|
}
|
|
|
|
|
|
-server {
|
|
|
- listen 80 default_server;
|
|
|
- listen [::]:80 default_server;
|
|
|
- include /etc/nginx/conf.d/server_name.active;
|
|
|
- return 301 https://$host$request_uri;
|
|
|
-}
|
|
|
-
|
|
|
server {
|
|
|
include /etc/nginx/mime.types;
|
|
|
charset utf-8;
|
|
@@ -50,7 +43,7 @@ server {
|
|
|
set_real_ip_from 10.0.0.0/8;
|
|
|
set_real_ip_from 172.16.0.0/12;
|
|
|
set_real_ip_from 192.168.0.0/16;
|
|
|
- set_real_ip_from fd00::/8;
|
|
|
+ set_real_ip_from fc00::/7;
|
|
|
real_ip_header X-Forwarded-For;
|
|
|
real_ip_recursive on;
|
|
|
|
|
@@ -108,7 +101,7 @@ server {
|
|
|
}
|
|
|
|
|
|
location ^~ /Microsoft-Server-ActiveSync {
|
|
|
- proxy_pass http://sogo:20000/SOGo/Microsoft-Server-ActiveSync;
|
|
|
+ include /etc/nginx/conf.d/sogo_eas.active;
|
|
|
proxy_connect_timeout 1000;
|
|
|
proxy_next_upstream timeout error;
|
|
|
proxy_send_timeout 1000;
|
|
@@ -130,7 +123,7 @@ server {
|
|
|
}
|
|
|
|
|
|
location ^~ /SOGo {
|
|
|
- proxy_pass http://sogo:20000;
|
|
|
+ include /etc/nginx/conf.d/sogo.active;
|
|
|
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;
|
|
@@ -232,7 +225,7 @@ server {
|
|
|
set_real_ip_from 10.0.0.0/8;
|
|
|
set_real_ip_from 172.16.0.0/12;
|
|
|
set_real_ip_from 192.168.0.0/16;
|
|
|
- set_real_ip_from fd00::/8;
|
|
|
+ set_real_ip_from fc00::/7;
|
|
|
real_ip_header X-Forwarded-For;
|
|
|
real_ip_recursive on;
|
|
|
|
|
@@ -290,7 +283,7 @@ server {
|
|
|
}
|
|
|
|
|
|
location ^~ /Microsoft-Server-ActiveSync {
|
|
|
- proxy_pass http://sogo:20000/SOGo/Microsoft-Server-ActiveSync;
|
|
|
+ include /etc/nginx/conf.d/templates/sogo_eas.template;
|
|
|
proxy_connect_timeout 1000;
|
|
|
proxy_next_upstream timeout error;
|
|
|
proxy_send_timeout 1000;
|
|
@@ -312,7 +305,7 @@ server {
|
|
|
}
|
|
|
|
|
|
location ^~ /SOGo {
|
|
|
- proxy_pass http://sogo:20000;
|
|
|
+ include /etc/nginx/conf.d/sogo.active;
|
|
|
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;
|