From 780563666d33956ba34590233405b50ef9717ab4 Mon Sep 17 00:00:00 2001 From: SeanCondon Date: Sat, 17 Aug 2024 18:16:42 +0100 Subject: [PATCH] fix nesting, remove try_files Signed-off-by: SeanCondon --- ChatQnA/docker/ui/react/nginx.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ChatQnA/docker/ui/react/nginx.conf b/ChatQnA/docker/ui/react/nginx.conf index 43ceb4014e..97f315f317 100644 --- a/ChatQnA/docker/ui/react/nginx.conf +++ b/ChatQnA/docker/ui/react/nginx.conf @@ -11,11 +11,10 @@ server { location / { root /usr/share/nginx/html; index index.html index.htm; - try_files $uri $uri/ /index.html =404; - } - location ~* \.(gif|jpe?g|png|webp|ico|svg|css|js|mp4|woff2)$ { - expires 1d; + location ~* \.(gif|jpe?g|png|webp|ico|svg|css|js|mp4|woff2)$ { + expires 1d; + } } location "/v1/chatqna" {