pleroma-otp/templates/pleroma.cloudflare.nginx.conf.j2
changeset 96 290c18c27521
parent 95 35b63b150a51
child 102 5afa8c28e689
equal deleted inserted replaced
95:35b63b150a51 96:290c18c27521
    38     gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/activity+json application/atom+xml;
    38     gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/activity+json application/atom+xml;
    39 
    39 
    40     # the nginx default is 1m, not enough for large media uploads
    40     # the nginx default is 1m, not enough for large media uploads
    41     client_max_body_size 16m;
    41     client_max_body_size 16m;
    42 
    42 
    43     root {{nginx_html_root}};
       
    44 
       
    45     location = / {
       
    46         index index.html;
       
    47     }
       
    48 
       
    49     location / {
    43     location / {
    50         try_files $uri @pleroma;
       
    51     }
       
    52 
       
    53     location @pleroma {
       
    54         add_header X-XSS-Protection "1; mode=block";
    44         add_header X-XSS-Protection "1; mode=block";
    55         add_header X-Permitted-Cross-Domain-Policies none;
    45         add_header X-Permitted-Cross-Domain-Policies none;
    56         add_header X-Frame-Options DENY;
    46         add_header X-Frame-Options DENY;
    57         add_header X-Content-Type-Options nosniff;
    47         add_header X-Content-Type-Options nosniff;
    58         add_header Referrer-Policy same-origin;
    48         add_header Referrer-Policy same-origin;