From f737fd2ce90680a6958c3d0253c17378e6367287 Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 16 Dec 2024 12:56:57 +0100 Subject: [PATCH] Container: fix nginx config --- nginx.conf | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/nginx.conf b/nginx.conf index 04c70b4..320c424 100644 --- a/nginx.conf +++ b/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/; # } } +}