writefreely/server/templates/nginx.conf.j2
changeset 202 252069788104
parent 200 10051617d075
--- a/writefreely/server/templates/nginx.conf.j2	Sun Nov 06 21:39:24 2022 -0600
+++ b/writefreely/server/templates/nginx.conf.j2	Sun Nov 06 22:03:27 2022 -0600
@@ -34,10 +34,7 @@
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $remote_addr;
-
-        set $upstream http://127.0.0.1:{{nginx_proxy_port}};
-        proxy_pass $upstream;
-
+        proxy_pass http://127.0.0.1:{{nginx_proxy_port}};
         proxy_redirect off;
     }
 
@@ -51,10 +48,7 @@
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $remote_addr;
-
-        set $upstream http://127.0.0.1:{{nginx_proxy_port}};
-        proxy_pass $upstream;
-
+        proxy_pass http://127.0.0.1:{{nginx_proxy_port}};
         proxy_redirect off;
     }
 }