Browse Source

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

andryyy 6 years ago
parent
commit
bb12ce9edc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      data/conf/nginx/site.conf

+ 2 - 1
data/conf/nginx/site.conf

@@ -34,6 +34,7 @@ server {
 
   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_ssl.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  Host $http_host;
     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;
   }