Skip to content

Commit

Permalink
Fix https connections
Browse files Browse the repository at this point in the history
  • Loading branch information
danilapog committed Dec 20, 2024
1 parent 259c058 commit 22346a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/balancer/conf.d/balancer-server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ server {
}

location / {
set $pass_access_scheme $scheme;
set $pass_access_scheme $the_scheme;
set $pass_server_port $server_port;

set $best_http_host $http_host;
Expand Down
5 changes: 5 additions & 0 deletions config/balancer/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ http {
"" $request_id;
}

map $http_x_forwarded_proto $the_scheme {
default $http_x_forwarded_proto;
"" $scheme;
}

upstream main_balancer {

server 0.0.0.1; # placeholder
Expand Down

0 comments on commit 22346a8

Please sign in to comment.