summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-24 17:36:43 +0100
committerGitHub <noreply@github.com>2023-02-24 17:36:43 +0100
commitb49f27ce14b7ab3f2b6899780484f32fcfd2072d (patch)
treeb0b6427a11c99cef5d36c4af0346d3fc9d5d08ad
parenteaea1789f88082dae5b6cd12cc98bfc48221f35d (diff)
parentf1dc4ef241730ddb808031dae716b007dcc1749c (diff)
downloadvyos-1x-b49f27ce14b7ab3f2b6899780484f32fcfd2072d.tar.gz
vyos-1x-b49f27ce14b7ab3f2b6899780484f32fcfd2072d.zip
Merge pull request #1849 from sever-sever/T5029-regex
T5029: Fix Regex for nginx to find a better match
-rw-r--r--data/templates/https/nginx.default.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/https/nginx.default.j2 b/data/templates/https/nginx.default.j2
index 753c3a5c9..3463bc37d 100644
--- a/data/templates/https/nginx.default.j2
+++ b/data/templates/https/nginx.default.j2
@@ -34,7 +34,7 @@ server {
ssl_protocols TLSv1.2 TLSv1.3;
# proxy settings for HTTP API, if enabled; 503, if not
- location ~ /(retrieve|configure|config-file|image|container-image|generate|show|reset|docs|openapi.json|redoc|graphql) {
+ location ~ ^/(retrieve|configure|config-file|image|container-image|generate|show|reset|docs|openapi.json|redoc|graphql) {
{% if server.api %}
{% if server.api.socket %}
proxy_pass http://unix:/run/api.sock;