From 56a4c388aa2e1455e9acca696fed0661341e728d Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Mon, 13 Nov 2023 14:21:41 +0530 Subject: [PATCH] fix: making v2 APIs work for HTTPS --- frontend/confd/templates/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/confd/templates/nginx.conf b/frontend/confd/templates/nginx.conf index 6d1d6081..10a9bf5a 100755 --- a/frontend/confd/templates/nginx.conf +++ b/frontend/confd/templates/nginx.conf @@ -111,7 +111,7 @@ http { } # Get the hostname from environment here? - location /api/v1 { + location ~ /api/v(1|2) { proxy_pass http://{{ getenv "BACKEND_HOSTNAME" "shuffle-backend" }}:5001; proxy_buffering off; proxy_http_version 1.1;