This commit is contained in:
parent
0acf593279
commit
f737fd2ce9
1 changed files with 7 additions and 16 deletions
23
nginx.conf
23
nginx.conf
|
@ -1,3 +1,9 @@
|
|||
events {
|
||||
worker_connections 1024; ## Default: 1024
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
upstream aiohttp {
|
||||
# fail_timeout=0 means we always retry an upstream even if it failed
|
||||
# to return a good HTTP response
|
||||
|
@ -47,14 +53,6 @@ server {
|
|||
proxy_pass http://aiohttp;
|
||||
}
|
||||
|
||||
location /graphql {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_http_version 1.1;
|
||||
proxy_buffering off;
|
||||
proxy_pass http://aiohttp;
|
||||
}
|
||||
|
||||
location /gj/live {
|
||||
proxy_pass http://aiohttp;
|
||||
proxy_http_version 1.1;
|
||||
|
@ -71,14 +69,6 @@ server {
|
|||
proxy_buffering off;
|
||||
}
|
||||
|
||||
location /graphql_sched/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_http_version 1.1;
|
||||
proxy_buffering off;
|
||||
proxy_pass http://localhost:8080/graphql_sched;
|
||||
}
|
||||
|
||||
location /gj/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
@ -165,3 +155,4 @@ server {
|
|||
# alias /home/phil/formidable_src/local_data/;
|
||||
# }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue