summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-02-24 15:27:07 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-02-24 15:27:07 +0000
commitf1dc4ef241730ddb808031dae716b007dcc1749c (patch)
treeb0b6427a11c99cef5d36c4af0346d3fc9d5d08ad
parenteaea1789f88082dae5b6cd12cc98bfc48221f35d (diff)
downloadvyos-1x-f1dc4ef241730ddb808031dae716b007dcc1749c.tar.gz
vyos-1x-f1dc4ef241730ddb808031dae716b007dcc1749c.zip
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;