pleroma/otp/templates/pleroma.cloudflare.index.nginx.conf.j2
changeset 200 10051617d075
parent 166 4ab7efce7321
child 202 252069788104
--- a/pleroma/otp/templates/pleroma.cloudflare.index.nginx.conf.j2	Sat Oct 22 14:51:55 2022 -0500
+++ b/pleroma/otp/templates/pleroma.cloudflare.index.nginx.conf.j2	Sun Nov 06 18:23:19 2022 -0600
@@ -61,7 +61,8 @@
         proxy_set_header Connection "upgrade";
         proxy_set_header Host $http_host;
 
-        proxy_pass {{pleroma_proxy_pass}};
+        set $upstream {{pleroma_proxy_pass}};
+        proxy_pass $upstream;
 
         client_max_body_size 16m;
     }
@@ -70,7 +71,9 @@
         proxy_cache {{pleroma_instance}}-pleroma_media_cache;
         proxy_cache_lock on;
         proxy_ignore_client_abort on;
-        proxy_pass {{pleroma_proxy_pass}};
+
+        set $upstream {{pleroma_proxy_pass}};
+        proxy_pass $upstream;
     }
 
     # don't expose prometheus stats publicly