[SOGo] SOGo refuses to bind to IPv6, so force IPv4 in proxy_pass, fixes #1006

This commit is contained in:
André Peters
2018-02-12 21:32:49 +01:00
parent 7a69586d91
commit 74c804b9a3
6 changed files with 28 additions and 23 deletions

View File

@@ -101,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;
@@ -123,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;
@@ -283,7 +283,7 @@ server {
}
location ^~ /Microsoft-Server-ActiveSync {
proxy_pass http://sogo:20000/SOGo/Microsoft-Server-ActiveSync;
include /etc/nginx/conf.d/templates/sogo_proxy.template;
proxy_connect_timeout 1000;
proxy_next_upstream timeout error;
proxy_send_timeout 1000;
@@ -305,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;

View File

@@ -0,0 +1 @@
proxy_pass http://${IPV4_NETWORK}.248:20000;

View File

@@ -0,0 +1 @@
proxy_pass http://${IPV4_NETWORK}.248:20000/SOGo/Microsoft-Server-ActiveSync;