equal
deleted
inserted
replaced
56 proxy_http_version 1.1; |
56 proxy_http_version 1.1; |
57 proxy_set_header Upgrade $http_upgrade; |
57 proxy_set_header Upgrade $http_upgrade; |
58 proxy_set_header Connection "upgrade"; |
58 proxy_set_header Connection "upgrade"; |
59 proxy_set_header Host $http_host; |
59 proxy_set_header Host $http_host; |
60 |
60 |
61 proxy_pass {{pleroma_proxy_pass}}; |
61 set $upstream {{pleroma_proxy_pass}}; |
|
62 proxy_pass $upstream; |
62 |
63 |
63 client_max_body_size 16m; |
64 client_max_body_size 16m; |
64 } |
65 } |
65 |
66 |
66 location /proxy { |
67 location /proxy { |
67 proxy_cache {{pleroma_instance}}-pleroma_media_cache; |
68 proxy_cache {{pleroma_instance}}-pleroma_media_cache; |
68 proxy_cache_lock on; |
69 proxy_cache_lock on; |
69 proxy_ignore_client_abort on; |
70 proxy_ignore_client_abort on; |
70 proxy_pass {{pleroma_proxy_pass}}; |
71 |
|
72 set $upstream {{pleroma_proxy_pass}}; |
|
73 proxy_pass $upstream; |
71 } |
74 } |
72 |
75 |
73 # don't expose prometheus stats publicly |
76 # don't expose prometheus stats publicly |
74 location /api/pleroma/app_metrics { |
77 location /api/pleroma/app_metrics { |
75 return 404; |
78 return 404; |