fix referrers again

This commit is contained in:
bunkerity
2020-12-02 13:49:48 +01:00
parent ed8bd902b1
commit db04c0345c

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