From a3af4c09ae05883e006e5d8227d78ebe1e083166 Mon Sep 17 00:00:00 2001 From: Frikky Date: Thu, 9 Nov 2023 09:05:27 +0100 Subject: [PATCH] Split up nginx v1 and v2 again to fix workflow run loading --- frontend/confd/templates/nginx.conf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/confd/templates/nginx.conf b/frontend/confd/templates/nginx.conf index 6d1d6081..22b98574 100755 --- a/frontend/confd/templates/nginx.conf +++ b/frontend/confd/templates/nginx.conf @@ -70,7 +70,18 @@ http { try_files $uri /index.html; } - location ~ /api/v(1|2) { + location /api/v1 { + proxy_pass http://{{ getenv "BACKEND_HOSTNAME" "shuffle-backend" }}:5001; + proxy_buffering off; + proxy_http_version 1.1; + + proxy_connect_timeout 900; + proxy_send_timeout 900; + proxy_read_timeout 900; + send_timeout 900; + } + + location /api/v2 { proxy_pass http://{{ getenv "BACKEND_HOSTNAME" "shuffle-backend" }}:5001; proxy_buffering off; proxy_http_version 1.1;