Container: fix nginx config
All checks were successful
/ build (push) Successful in 30s

This commit is contained in:
phil 2024-12-16 12:56:57 +01:00
parent 0acf593279
commit f737fd2ce9

View file

@ -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/;
# }
}
}