diff --git a/wo/cli/templates/cf-update.mustache b/wo/cli/templates/cf-update.mustache index cf2a3d7..ce6269c 100644 --- a/wo/cli/templates/cf-update.mustache +++ b/wo/cli/templates/cf-update.mustache @@ -62,7 +62,9 @@ if [ -d /etc/nginx/conf.d ]; then echo "set_real_ip_from ${ip};" >> "${cfConf}" done - service nginx reload + echo 'real_ip_header CF-Connecting-IP;' >> "${cfConf}" + + nginx -t && service nginx reload else echo "There are some errors in the IP blocks" >&2 exit 1