pleroma/otp/templates/pleroma.cloudflare.index.nginx.conf.j2
changeset 200 10051617d075
parent 166 4ab7efce7321
child 202 252069788104
equal deleted inserted replaced
199:9aa5f284ea10 200:10051617d075
    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         proxy_pass {{pleroma_proxy_pass}};
    64         set $upstream {{pleroma_proxy_pass}};
       
    65         proxy_pass $upstream;
    65 
    66 
    66         client_max_body_size 16m;
    67         client_max_body_size 16m;
    67     }
    68     }
    68 
    69 
    69     location /proxy {
    70     location /proxy {
    70         proxy_cache {{pleroma_instance}}-pleroma_media_cache;
    71         proxy_cache {{pleroma_instance}}-pleroma_media_cache;
    71         proxy_cache_lock on;
    72         proxy_cache_lock on;
    72         proxy_ignore_client_abort on;
    73         proxy_ignore_client_abort on;
    73         proxy_pass {{pleroma_proxy_pass}};
    74 
       
    75         set $upstream {{pleroma_proxy_pass}};
       
    76         proxy_pass $upstream;
    74     }
    77     }
    75 
    78 
    76     # don't expose prometheus stats publicly
    79     # don't expose prometheus stats publicly
    77     location /api/pleroma/app_metrics {
    80     location /api/pleroma/app_metrics {
    78         return 404;
    81         return 404;