Skip to content

Commit cb90bed

Browse files
authored
Merge pull request #218 from LibreCodeCoop/feat/block-dot-files
feat: block dot files to be acessible by web context
2 parents fc6afdb + 0a9062a commit cb90bed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.docker/web/nginx.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ server {
1010
#autoindex on;
1111
index index.php;
1212

13+
# Deny access to dotfiles
14+
location ~ /\. {
15+
deny all;
16+
access_log off;
17+
log_not_found off;
18+
}
19+
1320
location / {
1421
# try to serve file directly, fallback to app.php
1522
try_files $uri /index.php$is_args$args;

0 commit comments

Comments
 (0)