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