mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-28 11:13:36 +01:00
31 lines
880 B
Plaintext
31 lines
880 B
Plaintext
server {
|
|
listen 80 ;
|
|
|
|
gzip on;
|
|
access_log /var/log/nginx/mediacms.io.access.log;
|
|
|
|
error_log /var/log/nginx/mediacms.io.error.log warn;
|
|
|
|
location /static {
|
|
alias /home/mediacms.io/mediacms/static ;
|
|
}
|
|
|
|
location /media/original {
|
|
alias /home/mediacms.io/mediacms/media_files/original;
|
|
}
|
|
|
|
location /media {
|
|
alias /home/mediacms.io/mediacms/media_files ;
|
|
}
|
|
|
|
location / {
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
|
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
|
|
|
include /etc/nginx/sites-enabled/uwsgi_params;
|
|
uwsgi_pass 127.0.0.1:9000;
|
|
}
|
|
}
|