Skip to content

Commit

Permalink
fix: ensure nginx passes https flag to php-fpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ppmathis committed Jan 5, 2025
1 parent 568414e commit e58ba04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ http {
set_real_ip_from 0.0.0.0/0;
set_real_ip_from ::/0;

map $http_x_forwarded_proto $fastcgi_param_https_variable {
default '';
https 'on';
}

server {
listen 8080 default_server;
listen [::]:8080 default_server;
Expand All @@ -48,6 +53,7 @@ http {
fastcgi_param SERVER_ADDR ${BLESTA_ADDRESS};
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param HTTPS $fastcgi_param_https_variable if_not_empty;
}

location ~ /\. {
Expand Down

0 comments on commit e58ba04

Please sign in to comment.