Skip to content

Commit

Permalink
Release 6.2.16 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Jan 24, 2023
1 parent cd14ae6 commit 843164b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 6.2.16 2023-01-24 <dave at tiredofit dot ca>

### Changed
- Update "proxy" redirect template to support WS/WSS
- Fix for 'NGINX_ENABLE_FASTCGI_HTTPS' not working (credit joergmschulz@github)


## 6.2.15 2022-12-24 <dave at tiredofit dot ca>

### Changed
Expand Down
4 changes: 2 additions & 2 deletions install/assets/functions/10-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,11 @@ nginx_configure_server() {
### FastCGI reverse proxy
if var_true "${NGINX_ENABLE_FASTCGI_HTTPS}"; then
print_notice "Enable Nginx FastCGI HTTPS Termination Support"
sed -i "s|fastcgi_param HTTPS '.*';|fastcgi_param HTTPS 'on';|g" /etc/nginx/fastcgi_params
sed -i "s|fastcgi_param HTTPS .*;|fastcgi_param HTTPS on;|g" /etc/nginx/fastcgi_params
PROTOCOL="https://"
else
print_debug "Disable Nginx FastCGI HTTPS Termination Support"
sed -i "s|fastcgi_param HTTPS '.*';|fastcgi_param HTTPS 'off';|g" /etc/nginx/fastcgi_params
sed -i "s|fastcgi_param HTTPS .*;|fastcgi_param HTTPS off;|g" /etc/nginx/fastcgi_params
PROTOCOL="http://"
fi

Expand Down
11 changes: 11 additions & 0 deletions install/etc/nginx/templates/proxy.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_ssl_server_name on;

proxy_set_header Host $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;

proxy_read_timeout 90;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
### Don't edit past here
}

0 comments on commit 843164b

Please sign in to comment.