* server protected files queries in PHP application
This commit is contained in:
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user