This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Plesk Ubuntu Cloudflare Real IP Setup Script | |
| # Sets CF-Connecting-IP for Nginx & Apache globally, with backups | |
| # Usage: | |
| # sudo ./setup_cf_realip.sh # install/update | |
| # sudo ./setup_cf_realip.sh --uninstall # remove configs | |
| set -e | |
| NGINX_CONF="/etc/nginx/conf.d/cloudflare_realip.conf" |