From 2d0eb15549bfd4066a781e958c9226a42c088861 Mon Sep 17 00:00:00 2001 From: EarthlingDavey <15802017+EarthlingDavey@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:33:46 +0000 Subject: [PATCH] Fix nginx syntax --- deploy/config/local/nginx/server.conf | 4 ++-- deploy/config/server.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/config/local/nginx/server.conf b/deploy/config/local/nginx/server.conf index 43abc08dd..3559ea15f 100644 --- a/deploy/config/local/nginx/server.conf +++ b/deploy/config/local/nginx/server.conf @@ -116,8 +116,8 @@ server { set $skip_cache 1; } - # ...it's to the readiness endpoint - if ($request_uri = "/readiness") { + # ...it's to the liveness or readiness endpoint + if ($request_uri ~* "^/(liveness|readiness)$" ) { set $skip_cache 1; } diff --git a/deploy/config/server.conf b/deploy/config/server.conf index 0a50c7140..49a3b974d 100644 --- a/deploy/config/server.conf +++ b/deploy/config/server.conf @@ -136,7 +136,7 @@ server { } # ...it's to the liveness or readiness endpoint - if ($request_uri ~* "^(/liveness|/readiness)$" { + if ($request_uri ~* "^/(liveness|readiness)$" ) { set $skip_cache 1; }