Skip to content

Commit

Permalink
Alter the way HTTPS is setup in fastcgi_params
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Nov 29, 2022
1 parent bce5faf commit f301f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/assets/functions/10-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,11 @@ nginx_configure_server() {
### FastCGI reverse proxy
if var_true "${NGINX_ENABLE_FASTCGI_HTTPS}"; then
print_notice "Enable Nginx FastCGI HTTPS Termination Support"
echo "fastcgi_param HTTPS 'on';" >>/etc/nginx/fastcgi_params
sed -i "s|fastcgi_param HTTPS '.*';|fastcgi_param HTTPS 'on';" >> /etc/nginx/fastcgi_params
PROTOCOL="https://"
else
print_debug "Disable Nginx FastCGI HTTPS Termination Support"
echo "fastcgi_param HTTPS 'off';" >>/etc/nginx/fastcgi_params
sed -i "s|fastcgi_param HTTPS '.*';|fastcgi_param HTTPS 'off';" >> /etc/nginx/fastcgi_params
PROTOCOL="http://"
fi

Expand Down

0 comments on commit f301f8d

Please sign in to comment.