pleroma/otp/templates/pleroma.cloudflare.nginx.conf.j2
changeset 200 10051617d075
parent 123 e8d0308b94b2
child 202 252069788104
equal deleted inserted replaced
199:9aa5f284ea10 200:10051617d075
    51         proxy_http_version 1.1;
    51         proxy_http_version 1.1;
    52         proxy_set_header Upgrade $http_upgrade;
    52         proxy_set_header Upgrade $http_upgrade;
    53         proxy_set_header Connection "upgrade";
    53         proxy_set_header Connection "upgrade";
    54         proxy_set_header Host $http_host;
    54         proxy_set_header Host $http_host;
    55 
    55 
    56         proxy_pass {{pleroma_proxy_pass}};
    56         set $upstream {{pleroma_proxy_pass}};
       
    57         proxy_pass $upstream;
    57 
    58 
    58         client_max_body_size 16m;
    59         client_max_body_size 16m;
    59     }
    60     }
    60 
    61 
    61     location /proxy {
    62     location /proxy {
    62         proxy_cache {{pleroma_instance}}-pleroma_media_cache;
    63         proxy_cache {{pleroma_instance}}-pleroma_media_cache;
    63         proxy_cache_lock on;
    64         proxy_cache_lock on;
    64         proxy_ignore_client_abort on;
    65         proxy_ignore_client_abort on;
    65         proxy_pass {{pleroma_proxy_pass}};
    66 
       
    67         set $upstream {{pleroma_proxy_pass}};
       
    68         proxy_pass $upstream;
    66     }
    69     }
    67 
    70 
    68     # don't expose prometheus stats publicly
    71     # don't expose prometheus stats publicly
    69     location /api/pleroma/app_metrics {
    72     location /api/pleroma/app_metrics {
    70         return 404;
    73         return 404;