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