Skip to content

Commit

Permalink
fix(nginx): add 403 response for undefined user locations in region p…
Browse files Browse the repository at this point in the history
…ublic config
  • Loading branch information
alimd committed Nov 11, 2024
1 parent c982522 commit 5c060c8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
# Nitrobase file location that can be accessed by anyone.

location /$nitrobaseRegionPublic/ {
if ($userLocation = 0) {
return 403 'UND'; # User not defined
}

try_files $uri =404;
}

0 comments on commit 5c060c8

Please sign in to comment.