From ddf34accb693f777d45cd8cc144409815a23ad3b Mon Sep 17 00:00:00 2001 From: kulgg <75735874+kulgg@users.noreply.github.com> Date: Thu, 18 Jan 2024 13:31:26 +0100 Subject: [PATCH] fix: auth proxy issues (#632) --- CHANGELOG.md | 2 ++ docker/default.conf.template | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0711055cf..7cc2ec611 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ the detailed section referring to by linking pull requests or issues. #### Patch +- Fix auth proxy issues by disabling caching for non-static files + #### Deployment Migration Notes ## [v2.3.1] 2024-01-18 diff --git a/docker/default.conf.template b/docker/default.conf.template index 3858541c5..0feb8cfd8 100644 --- a/docker/default.conf.template +++ b/docker/default.conf.template @@ -7,9 +7,16 @@ server { server_name localhost; root /usr/share/nginx/html; - index index.html; location / { - try_files $uri $uri/ /index.html; + index do-not-use-me.html; + try_files $uri @index; + } + + location @index { + add_header Cache-Control no-cache; + expires 0; + index index.html; + try_files /index.html =404; } }