Skip to content

Commit

Permalink
feat(nginx): Complete new PerUser region location with manager access
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Jan 14, 2024
1 parent a2568cf commit d6ab5ed
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# PerUser region
# Store file location specific to each user id. Can be accessed using the user token.

location ~ ^/($storeRegionPerUser/[A-z0-9_=-]+/[A-z0-9_=-]+)/ {
if (!-f $document_root/$userLocation/.token/$authUserToken.asn) {
return 403;
break;
}

if (-f $document_root/$userLocation/.auth/manager.asn) {
try_files $uri =404;
break;
}

if ($userLocation = $1) {
try_files $uri =404;
break;
}

return 403;
}

0 comments on commit d6ab5ed

Please sign in to comment.