From b6657771a1a419fb47336466e80c32f6a263a4a2 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Fri, 14 Oct 2022 13:23:09 +0530 Subject: [PATCH] Fix assets not loading in supervisor UI (#17543) Signed-off-by: Shrikant Sharat Kandula --- deploy/docker/templates/nginx/nginx-app-http.conf.template.sh | 2 +- deploy/docker/templates/nginx/nginx-app-https.conf.template.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh b/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh index 9ef9ac6306..9d6dedeb57 100644 --- a/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh +++ b/deploy/docker/templates/nginx/nginx-app-http.conf.template.sh @@ -74,7 +74,7 @@ server { } # If the path has an extension at the end, then respond with 404 status if the file not found. - location ~ \.[a-z]+$ { + location ~ ^/(?!supervisor/).*\.[a-z]+$ { try_files \$uri =404; } diff --git a/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh b/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh index 8028b37e0a..a48107a72f 100644 --- a/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh +++ b/deploy/docker/templates/nginx/nginx-app-https.conf.template.sh @@ -91,7 +91,7 @@ server { } # If the path has an extension at the end, then respond with 404 status if the file not found. - location ~ \.[a-z]+$ { + location ~ ^/(?!supervisor/).*\.[a-z]+$ { try_files \$uri =404; }