Merge pull request #422 from janiosarmento/issue420

#420: No error treatment to /opt/cf-update.sh
This commit is contained in:
VirtuBox
2022-02-16 14:47:07 +01:00
committed by GitHub

View File

@@ -62,7 +62,9 @@ if [ -d /etc/nginx/conf.d ]; then
echo "set_real_ip_from ${ip};" >> "${cfConf}" echo "set_real_ip_from ${ip};" >> "${cfConf}"
done done
service nginx reload echo 'real_ip_header CF-Connecting-IP;' >> "${cfConf}"
nginx -t && service nginx reload
else else
echo "There are some errors in the IP blocks" >&2 echo "There are some errors in the IP blocks" >&2
exit 1 exit 1