From f1dc4ef241730ddb808031dae716b007dcc1749c Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 24 Feb 2023 15:27:07 +0000 Subject: T5029: Fix Regex for nginx to find a better match --- data/templates/https/nginx.default.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/templates/https/nginx.default.j2') 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; -- cgit v1.2.3