From 10e1523dd9b72ba4a146cf3bbbe7da2dd7a48254 Mon Sep 17 00:00:00 2001 From: David May <1301201+wass3r@users.noreply.github.com> Date: Mon, 4 May 2020 19:56:07 +0000 Subject: [PATCH] fix(nginx): reduce scope of regex (#154) Co-authored-by: David Vader <48764154+davidvader@users.noreply.github.com> --- nginx/default.conf | 2 +- nginx/local.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/default.conf b/nginx/default.conf index 077d14a2e..f7ac1d9be 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -20,7 +20,7 @@ server { } # proxy to backend server to allow using CLI w/ UI url - location ~ ^/(login|authenticate|api) { + location ~ ^/(login|authenticate|api/v[0-9]+)/ { proxy_pass $VELA_API; recursive_error_pages on; diff --git a/nginx/local.conf b/nginx/local.conf index 5ff308c9a..0e1fbea9c 100644 --- a/nginx/local.conf +++ b/nginx/local.conf @@ -18,7 +18,7 @@ server { } # proxy to backend server to allow using CLI w/ UI url - location ~ ^/(login|authenticate|api) { + location ~ ^/(login|authenticate|api/v[0-9]+)/ { proxy_pass http://server:8080; recursive_error_pages on;