Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 558405b

Browse files
committedNov 2, 2024
Introduce variable HTTPS_VIRTUAL_PORT
to use with HTTPS_METHOD=passthrough.
1 parent 6dee834 commit 558405b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎app/nginx-stream.tmpl

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
{{ $host := trim $host }}
2424
upstream {{ $host }}_backend {
2525
{{ range $container := $containers }}
26-
server {{ $container.Name }}:{{ $external_https_port }};
26+
{{ $https_port := coalesce $container.Env.HTTPS_VIRTUAL_PORT "443" }}
27+
server {{ $container.Name }}:{{ $https_port }};
2728
{{ end }}
2829
}
2930
{{ end }}

0 commit comments

Comments
 (0)
Please sign in to comment.