Split up nginx v1 and v2 again to fix workflow run loading

This commit is contained in:
Frikky
2023-11-09 09:05:27 +01:00
parent 7fe01b0e0a
commit a3af4c09ae
+12 -1
View File
@@ -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;