diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-02-24 15:27:07 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-02-24 15:27:07 +0000 |
commit | f1dc4ef241730ddb808031dae716b007dcc1749c (patch) | |
tree | b0b6427a11c99cef5d36c4af0346d3fc9d5d08ad /data | |
parent | eaea1789f88082dae5b6cd12cc98bfc48221f35d (diff) | |
download | vyos-1x-f1dc4ef241730ddb808031dae716b007dcc1749c.tar.gz vyos-1x-f1dc4ef241730ddb808031dae716b007dcc1749c.zip |
T5029: Fix Regex for nginx to find a better match
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/https/nginx.default.j2 | 2 |
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; |