You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
server { |
|
listen 80; |
|
server_name _; |
|
|
|
include /etc/nginx/mime.types; |
|
autoindex off; |
|
default_type application/octet-stream; |
|
sendfile on; |
|
|
|
gzip on; |
|
gzip_min_length 1024; |
|
gzip_buffers 4 32k; |
|
gzip_types text/plain application/x-javascript text/javascript text/xml text/css; |
|
|
|
access_log /dev/stdout; |
|
error_log stdout; |
|
|
|
# Change this to update the upload size limit for your users |
|
client_max_body_size 500m; |
|
|
|
# Give requests some more time, since we're running Celery tasks synchronously |
|
# for now. |
|
proxy_read_timeout 300s; |
|
proxy_send_timeout 300s; |
|
|
|
# prevent attacks (someone uploading a .txt file that the browser |
|
# interprets as an HTML file, etc.) |
|
add_header X-Content-Type-Options nosniff; |
|
|
|
# MediaGoblin's stock static files: CSS, JS, etc. |
|
location /mgoblin_static/ { |
|
alias /app/mediagoblin/static/; |
|
} |
|
|
|
# Instance specific media: |
|
location /mgoblin_media/ { |
|
alias /app/user_dev/media/public/; |
|
} |
|
|
|
# Theme static files (usually symlinked in) |
|
location /theme_static/ { |
|
alias /app/user_dev/theme_static/; |
|
} |
|
|
|
# Plugin static files (usually symlinked in) |
|
location /plugin_static/ { |
|
alias /app/user_dev/plugin_static/; |
|
} |
|
|
|
location / { |
|
include uwsgi_params; |
|
uwsgi_pass unix:///tmp/mediagoblin.uwsgi.sock; |
|
uwsgi_param SCRIPT_NAME ""; |
|
} |
|
}
|
|
|