fix referrers again

This commit is contained in:
bunkerity 2020-12-02 13:49:48 +01:00
parent ed8bd902b1
commit db04c0345c
No known key found for this signature in database
GPG Key ID: 654FFF51CEF7CC47
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ for ref in $BLACKLIST ; do
DATA="${DATA}\"~${ref}\" yes;\n"
done
echo "map \$http_referer \$bad_referrer { hostnames; default no; $DATA }" > /etc/nginx/map-referrer.conf
echo -e "map \$http_referer \$bad_referrer { hostnames; default no; $DATA }" > /etc/nginx/map-referrer.conf
cp /etc/nginx/map-referrer.conf /cache
if [ -f /tmp/nginx.pid ] ; then