Skip to content

Commit

Permalink
Fix assets are not accessible on webdav links (#170)
Browse files Browse the repository at this point in the history
* Fix assets are not accessible on webdav links - related to pimcore/pimcore#15856

* review changes
  • Loading branch information
dvesh3 committed Aug 30, 2023
1 parent 4cee30a commit 1dabc30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ server {

# Assets
# Still use a whitelist approach to prevent each and every missing asset to go through the PHP Engine.
location ~* ^(?!/admin)(.+?)\.((?:css|js)(?:\.map)?|jpe?g|gif|png|svgz?|eps|exe|gz|zip|mp\d|m4a|ogg|ogv|webp|webm|pdf|docx?|xlsx?|pptx?)$ {
location ~* ^(?!/admin|/asset/webdav)(.+?)\.((?:css|js)(?:\.map)?|jpe?g|gif|png|svgz?|eps|exe|gz|zip|mp\d|m4a|ogg|ogv|webp|webm|pdf|docx?|xlsx?|pptx?)$ {
try_files /var/assets$uri $uri =404;
expires 2w;
access_log off;
Expand Down

0 comments on commit 1dabc30

Please sign in to comment.