nginx
This commit is contained in:
parent
da5ff9a4e0
commit
1bafab6559
22
nginx.conf
22
nginx.conf
@ -1,17 +1,13 @@
|
|||||||
upstream app {
|
events {}
|
||||||
server 0.0.0.0:8000;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
http {
|
||||||
listen 80;
|
include mime.types;
|
||||||
server_name demo.dev.sprinthub.ru;
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name a.com;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_pass http://127.0.0.1:8000; #/$1$is_args$args;
|
||||||
proxy_set_header Host $http_host;
|
}
|
||||||
proxy_redirect off;
|
|
||||||
|
|
||||||
proxy_pass http://app;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user