Add proxy_params
This commit is contained in:
parent
af9f828bdd
commit
e147736143
2
.acmeenv
2
.acmeenv
|
@ -1,4 +1,4 @@
|
|||
. "$HOME/.acme.sh/acme.sh.env"
|
||||
|
||||
export CF_Account_ID=""
|
||||
export CF_Account_ID="422c4fb547f02ab95c920ac70a78c4bf"
|
||||
export CF_Token=""
|
|
@ -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;
|
3
setup.sh
3
setup.sh
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue