pleroma-otp/templates/pleroma.cloudflare.index.nginx.conf.j2
changeset 99 ed9f4d0ddce3
parent 95 35b63b150a51
child 102 5afa8c28e689
equal deleted inserted replaced
98:444887b61044 99:ed9f4d0ddce3
    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 = / {
    43     location = / {
    46         index index.html;
    44         return 301 http://www.$host$request_uri;
    47     }
    45     }
    48 
    46 
    49     location / {
    47     location / {
    50         try_files $uri @pleroma;
    48         try_files $uri @pleroma;
    51     }
    49     }