Add proxy_params

This commit is contained in:
Alex Thomassen 2021-10-01 16:50:13 +02:00
parent af9f828bdd
commit e147736143
Signed by: Alex
GPG Key ID: 10BD786B5F6FF5DE
3 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
. "$HOME/.acme.sh/acme.sh.env"
export CF_Account_ID=""
export CF_Account_ID="422c4fb547f02ab95c920ac70a78c4bf"
export CF_Token=""

4
proxy_params Normal file
View File

@ -0,0 +1,4 @@
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

View File

@ -30,6 +30,9 @@ curl -L "$GIST/letsencrypt.conf" > "$NGINX/letsencrypt.conf"
# Get the base SSL configuration
curl -L "$GIST/ssl_params.conf" > "$NGINX/ssl_params.conf"
# Get the base reverse proxy configuration
curl -L "$GIST/proxy_params" > "$NGINX/proxy_params"
# Get the PHP 7.4 FPM configuration (not enabled by default)
# You also need to install PHP before enabling it.
curl -L "$GIST/phpfpm.conf" > "$NGINX/phpfpm.conf"