following-error-fix
All checks were successful
Deploy on push / deploy (push) Successful in 25s

This commit is contained in:
Untone 2024-03-13 15:35:49 +03:00
parent 1dd34d5818
commit 324f069844

View File

@ -11,17 +11,10 @@ map $http_origin $allow_origin {
}
{{ range $port_map := .PROXY_PORT_MAP | split " " }}
{{ $port_map_list := $port_map | split ":" }}
{{ printf "Processing port map: %s\n" $port_map }}
{{ if ge (len $port_map_list) 3 }}
{{ $scheme := index $port_map_list 0 }}
{{ $listen_port := index $port_map_list 1 }}
{{ $upstream_port := index $port_map_list 2 }}
{{ printf "Scheme: %s, Listen Port: %s, Upstream Port: %s\n" $scheme $listen_port $upstream_port }}
{{ else }}
{{ printf "Invalid port map entry: %s\n" $port_map }}
{{ end }}
{{ end }}
{{ $port_map_list := $port_map | split ":" }}
{{ $scheme := index $port_map_list 0 }}
{{ $listen_port := index $port_map_list 1 }}
{{ $upstream_port := index $port_map_list 2 }}
server {
{{ if eq $scheme "http" }}