[Nginx] Fix site when ALLOW_ADMIN_EMAIL_LOGIN=y and reverse proxy is used, fixes #2489

master
andryyy 2019-04-01 22:46:13 +02:00
parent 82f7cab259
commit bb12ce9edc
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ server {
client_max_body_size 0; client_max_body_size 0;
listen 127.0.0.1:65580;
include /etc/nginx/conf.d/listen_plain.active; include /etc/nginx/conf.d/listen_plain.active;
include /etc/nginx/conf.d/listen_ssl.active; include /etc/nginx/conf.d/listen_ssl.active;
include /etc/nginx/conf.d/server_name.active; include /etc/nginx/conf.d/server_name.active;
@ -149,7 +150,7 @@ server {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header Content-Length ""; proxy_set_header Content-Length "";
proxy_pass http://127.0.0.1:80/sogo-auth; proxy_pass http://127.0.0.1:65580/sogo-auth;
proxy_pass_request_body off; proxy_pass_request_body off;
} }