-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
34 lines (26 loc) · 915 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
27
28
29
30
31
32
33
34
server {
# use 'listen 80 deferred;' for Linux
# use 'listen 80 accept_filter=httpready;' for FreeBSD
listen 80;
# client_max_body_size 4G;
# keepalive_timeout 5;
server_name site_name.infj.net domain.com www.domain.com;
root /var/www/web/site_name;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
location = /favicon.ico { access_log off; log_not_found off; }
location /static {
alias /var/www/web/site_name/static/;
}
location /media {
alias /var/www/web/site_name/media;
}
location /assets {
alias /var/www/web/site_name/assets/;
}
location / {
proxy_buffering off;
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/site_name.sock;
}
}