use ips
This commit is contained in:
parent
47fcd5289b
commit
2009e9737c
|
@ -32,12 +32,6 @@
|
||||||
- add_header Access-Control-Allow-Origin *
|
- add_header Access-Control-Allow-Origin *
|
||||||
- include snippets/blockbots.conf
|
- include snippets/blockbots.conf
|
||||||
- client_max_body_size 0
|
- client_max_body_size 0
|
||||||
- upstream backend {
|
|
||||||
server 127.0.0.1:3000 fail_timeout=0;
|
|
||||||
}
|
|
||||||
- upstream streaming {
|
|
||||||
server 127.0.0.1:4000 fail_timeout=0;
|
|
||||||
}
|
|
||||||
- location / {
|
- location / {
|
||||||
try_files $uri @proxy;
|
try_files $uri @proxy;
|
||||||
}
|
}
|
||||||
|
@ -92,7 +86,7 @@
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Proxy "";
|
proxy_set_header Proxy "";
|
||||||
proxy_pass http://streaming;
|
proxy_pass http://127.0.0.1:4000;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
@ -108,7 +102,7 @@
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Proxy "";
|
proxy_set_header Proxy "";
|
||||||
proxy_pass_header Server;
|
proxy_pass_header Server;
|
||||||
proxy_pass http://backend;
|
proxy_pass http://127.0.0.1:3000;
|
||||||
proxy_buffering on;
|
proxy_buffering on;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
Loading…
Reference in New Issue