Skip to content

Commit

Permalink
Fix nginx syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Oct 31, 2024
1 parent bb4509e commit 2d0eb15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy/config/local/nginx/server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion deploy/config/server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2d0eb15

Please sign in to comment.