1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-18 18:07:22 +01:00

add nginx security headers

This commit is contained in:
KiekerJan
2021-08-02 00:05:12 +02:00
parent 1f35158211
commit cf6eac0d0c
2 changed files with 7 additions and 0 deletions

View File

@@ -156,6 +156,8 @@ if [ ! -f /etc/nginx/conf.d/10-geoblock.conf ]; then
cp -f conf/nginx/conf.d/10-geoblock.conf /etc/nginx/conf.d/
fi
cp -f conf/nginx/security.conf /etc/nginx/sites-enabled/
# touch logfiles that might not exist
touch /var/log/nginx/geoipblock.log
chown www-data /var/log/nginx/geoipblock.log