Don't break DAV

master
andryyy 2019-02-26 22:13:37 +01:00
parent 5cef6b92be
commit 38911034c3
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 21 additions and 5 deletions

View File

@ -176,7 +176,22 @@ server {
}
location ^~ /SOGo {
include /etc/nginx/conf.d/sogo.active;
include /etc/nginx/conf.d/sogo_main.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;
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_max_body_size 0;
break;
}
location ^~ /SOGo/dav {
include /etc/nginx/conf.d/sogo_dav.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

@ -141,7 +141,7 @@ services:
- phpfpm
sogo-mailcow:
image: mailcow/sogo:1.53
image: mailcow/sogo:1.54
build: ./data/Dockerfiles/sogo
environment:
- DBNAME=${DBNAME}
@ -168,7 +168,7 @@ services:
- sogo
dovecot-mailcow:
image: mailcow/dovecot:1.64
image: mailcow/dovecot:1.65
build: ./data/Dockerfiles/dovecot
cap_add:
- NET_BIND_SERVICE
@ -268,8 +268,9 @@ services:
command: /bin/sh -c "envsubst < /etc/nginx/conf.d/templates/listen_plain.template > /etc/nginx/conf.d/listen_plain.active &&
envsubst < /etc/nginx/conf.d/templates/listen_ssl.template > /etc/nginx/conf.d/listen_ssl.active &&
envsubst < /etc/nginx/conf.d/templates/server_name.template > /etc/nginx/conf.d/server_name.active &&
. /etc/nginx/conf.d/templates/sogo.auth_request.template.sh > /etc/nginx/conf.d/sogo.active &&
envsubst < /etc/nginx/conf.d/templates/sogo.template >> /etc/nginx/conf.d/sogo.active &&
. /etc/nginx/conf.d/templates/sogo.auth_request.template.sh > /etc/nginx/conf.d/sogo_main.active &&
envsubst < /etc/nginx/conf.d/templates/sogo.template >> /etc/nginx/conf.d/sogo_main.active &&
envsubst < /etc/nginx/conf.d/templates/sogo.template >> /etc/nginx/conf.d/sogo_dav.active &&
envsubst < /etc/nginx/conf.d/templates/sogo_eas.template > /etc/nginx/conf.d/sogo_eas.active &&
nginx -qt &&
until ping phpfpm -c1 > /dev/null; do sleep 1; done &&