mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-22 08:13:33 +01:00
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
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 ;
|
|
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';
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|