Skip to content

Commit

Permalink
fix(nginx): reduce scope of regex (#154)
Browse files Browse the repository at this point in the history
Co-authored-by: David Vader <[email protected]>
  • Loading branch information
wass3r and plyr4 authored May 4, 2020
1 parent 66dda94 commit 10e1523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion nginx/local.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 10e1523

Please sign in to comment.