From 74ed1c1f16916a1e9b4c770c4a55b8fecb88e041 Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 4 Mar 2024 12:17:35 +0100 Subject: [PATCH] use host.docker.internal for jellyfin Signed-off-by: Simon L --- start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index 2c189d8..1ad3cd0 100644 --- a/start.sh +++ b/start.sh @@ -63,11 +63,11 @@ https://mail.{\$NC_DOMAIN}:443 { CADDY fi -if [ -n "$(dig A +short nextcloud-aio-jellyfin)" ] && ! grep -q nextcloud-aio-jellyfin /Caddyfile; then +if nc -z host.docker.internal 8096 && ! grep -q "host.docker.internal:8096" /Caddyfile; then cat << CADDY >> /Caddyfile https://media.{\$NC_DOMAIN}:443 { # import GEOFILTER - reverse_proxy nextcloud-aio-jellyfin:8096 + reverse_proxy host.docker.internal:8096 # TLS options tls {