Skip to content

Commit

Permalink
Merge pull request #29 from szaimen/enh/4326/use-host.docker.internal
Browse files Browse the repository at this point in the history
use host.docker.internal for jellyfin
  • Loading branch information
szaimen authored Mar 4, 2024
2 parents 584e230 + 74ed1c1 commit d83d733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d83d733

Please sign in to comment.