Skip to content

Commit 9b2e2c5

Browse files
Merge pull request #69 from UKHomeOffice/bugfix/set-listen-port-vars
Bugfix: Set listen port variables when using PP
2 parents 65effb9 + 32bdd17 commit 9b2e2c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ if [ "${LOAD_BALANCER_CIDR}" != "" ]; then
3636
real_ip_header proxy_protocol;
3737
set \$real_client_ip_if_set '\$proxy_protocol_addr ';
3838
set_real_ip_from ${LOAD_BALANCER_CIDR};
39+
set \$http_listen_port '${HTTP_LISTEN_PORT}';
40+
set \$https_listen_port '${HTTPS_LISTEN_PORT}';
3941
EOF-LISTEN-PP
4042
else
4143
msg "No \$LOAD_BALANCER_CIDR set, using straight SSL (client ip will be from loadbalancer if used)..."

0 commit comments

Comments
 (0)