init
This commit is contained in:
29
nginx/default.nginx
Normal file
29
nginx/default.nginx
Normal file
@@ -0,0 +1,29 @@
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
client_max_body_size 100M;
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location /static/ {
|
||||
alias /static/;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location /serve_media/ {
|
||||
alias /media/;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://app:8000;
|
||||
}
|
||||
}
|
||||
}
|
||||
25
nginx/dev.nginx
Normal file
25
nginx/dev.nginx
Normal file
@@ -0,0 +1,25 @@
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
client_max_body_size 100M;
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location /serve_media/ {
|
||||
alias /media/;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://app:8000;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user