Skip to content

Commit

Permalink
Allow txt/log files to be served from flysystem. (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelgbanks authored Jul 20, 2021
1 parent a0bf5a0 commit d56790a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drupal/rootfs/etc/nginx/shared/drupal.defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ location ~ ^/sites/[^/]+/files/.*\.txt$ {
}

# Very rarely should these ever be accessed outside of your lan
location ~* \.(txt|log)$ {
# Allow txt/log files served from flysystem.
location ~* ^/(?!_flysystem).*\.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
Expand Down

0 comments on commit d56790a

Please sign in to comment.