nginx: Add snippet for custom server block config.
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Brice Waegeneire 2022-01-20 10:43:24 +01:00
parent c4fab71d7a
commit 168b0fa9b7
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# Evolinux custom configuration, to be used in all server blocks
location ~ /\.(inc|git|bak|env) {
# We don't want to let the client know a file exist on the server,
# so we return 404 "Not found" instead of 403 "Forbidden".
return 404;
}

View File

@ -49,6 +49,8 @@ server {
stub_status on;
access_log off;
}
include /etc/nginx/snippets/evolinux_server_custom;
}
server {