mirror of
https://github.com/tanrax/SSE-Fake.git
synced 2024-11-10 01:55:41 +01:00
Update nginx.conf
This commit is contained in:
parent
8e4dbd522d
commit
967d7fd4c4
10
nginx.conf
10
nginx.conf
@ -2,10 +2,9 @@ events {}
|
|||||||
|
|
||||||
http {
|
http {
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
root /var/www;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://django:8000;
|
proxy_pass http://django:8000;
|
||||||
@ -21,13 +20,14 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /static {
|
location /static {
|
||||||
autoindex on;
|
include /etc/nginx/mime.types;
|
||||||
|
alias /var/www/static;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /media {
|
location /media {
|
||||||
autoindex on;
|
alias /var/www/media;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /favicon.ico { access_log off; log_not_found off; }
|
location = /favicon.ico { access_log off; log_not_found off; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user