reuses TRAEFIK_LISTENING_IP env variable

This commit is contained in:
Jean-Christophe Vanhalle
2024-10-11 23:21:23 +02:00
parent 3c22799e47
commit f94e7baba5
2 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
local_ip=192.168.2.109
local_ip_on_remote=localhost
local_port=5432
local_port_on_remote=5432

View File

@@ -13,10 +13,12 @@ fi
# shellcheck source=./env_files/ssh-tunnel-example.env
. "${1}"
# shellcheck source=./.env-example
. ./.env
ssh \
-v \
-N \
-L \
"${local_ip}:${local_port}:${local_ip_on_remote}:${local_port_on_remote}" \
"${TRAEFIK_LISTENING_IP}:${local_port}:${local_ip_on_remote}:${local_port_on_remote}" \
"${remote_host}"