nginx: Block some non content files
All checks were successful
Build Docker / CheckFiles (push) Successful in 5s
Build Docker / Build ARM Docker (push) Successful in 17s
Build Docker / Build Docker (push) Successful in 20s

This commit is contained in:
Nathan Woodburn 2023-09-30 12:53:56 +10:00
parent 6e7799620b
commit 9928f0c6a6
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,11 @@ server {
log_not_found off;
}
location ~* (nginx.conf|Dockerfile|cleanup.ps1|cleanup.bat|README.md|LICENSE.md) {
deny all;
}
# Custom 404 page
error_page 404 /404.html;
root /usr/share/nginx/html;

1
ping
View File

@ -1 +0,0 @@
pong