writefreely/server/templates/nginx.conf.j2
changeset 200 10051617d075
parent 159 05d0cf32e077
child 202 252069788104
--- a/writefreely/server/templates/nginx.conf.j2	Sat Oct 22 14:51:55 2022 -0500
+++ b/writefreely/server/templates/nginx.conf.j2	Sun Nov 06 18:23:19 2022 -0600
@@ -34,7 +34,10 @@
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $remote_addr;
-        proxy_pass http://127.0.0.1:{{nginx_proxy_port}};
+
+        set $upstream http://127.0.0.1:{{nginx_proxy_port}};
+        proxy_pass $upstream;
+
         proxy_redirect off;
     }
 
@@ -48,7 +51,10 @@
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $remote_addr;
-        proxy_pass http://127.0.0.1:{{nginx_proxy_port}};
+
+        set $upstream http://127.0.0.1:{{nginx_proxy_port}};
+        proxy_pass $upstream;
+
         proxy_redirect off;
     }
 }