* server protected files queries in PHP application

This commit is contained in:
2026-09-24 12:41:40 +03:00
parent 18c43c6aff
commit 9b3a69d296

View File

@ -22,6 +22,13 @@ location ~ ^/.*\.xml { try_files $uri /index.php; }
location = /robots.txt { try_files $uri /index.php; } location = /robots.txt { try_files $uri /index.php; }
location = /humans.txt { try_files $uri /index.php; } location = /humans.txt { try_files $uri /index.php; }
## Protected uploads are served only by the application (signed urls), never as static files
## ^~ stops regex locations (jpg, png, pdf...) from serving them directly
location ^~ /storage/app/uploads/protected/ {
rewrite ^ /index.php last;
}
## Let nginx return 404 if static file not exists ## Let nginx return 404 if static file not exists
location /storage/app/uploads/public { location /storage/app/uploads/public {