Skip to content
Snippets Groups Projects

Moderation tools

Merged me5na7qbjqbrp requested to merge moderation_tools into master
Files
11
+ 9
1
@@ -37,13 +37,17 @@ server {
# Allow 2Go upload at once
client_max_body_size 2G;
add_header "X-XSS-Protection" "1; mode=block";
add_header "Content-Security-Policy" "default-src 'self' 'unsafe-inline';";
# Django statics and media
# Do not directly serve media, it must be authorized
# by a Django view to check permissions
location /protected/media {
location /protected/media {
internal;
alias /var/www/photos/photo21/media;
}
location /static {
alias /var/www/photos/photo21/static;
}
@@ -51,5 +55,9 @@ server {
location / {
uwsgi_pass unix:///var/run/uwsgi/app/uwsgi_photos/socket;
include /etc/nginx/uwsgi_params;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
}
}
Loading