-
Notifications
You must be signed in to change notification settings - Fork 4
/
nginx.conf
26 lines (21 loc) · 781 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
server {
listen *:80;
server_name localhost;
client_max_body_size 5000M; # allows file uploads up to 500 megabytes
add_header X-Clacks-Overhead "GNU Terry Pratchett";
add_header X-Clacks-Overhead "GNU Terry Pratchet";
add_header Access-Control-Allow-Origin *;
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Authorization,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
location /images {
alias /var/www/images;
}
location / {
include /etc/nginx/uwsgi_params.par;
uwsgi_pass uwsgi:3031;
}
location /static {
alias /var/www/static;
}
}