Skip to content

Commit

Permalink
add jellyfin to Caddyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AiroPi committed Feb 22, 2024
1 parent c218650 commit edc8c85
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,21 @@ https://mail.{\$NC_DOMAIN}:443 {
CADDY
fi

if [ -n "$(dig A +short nextcloud-aio-jellyfin)" ] && ! grep -q nextcloud-aio-jellyfin /Caddyfile; then
cat << CADDY >> /Caddyfile
https://jellyfin.{\$NC_DOMAIN}:443 {
reverse_proxy nextcloud-aio-jellyfin:8096
# TLS options
tls {
issuer acme {
disable_http_challenge
}
}
}
CADDY
fi

mkdir -p /data/caddy-imports
if ! grep -q "/data/caddy-imports" /Caddyfile; then
echo 'import /data/caddy-imports/*' >> /Caddyfile
Expand Down

0 comments on commit edc8c85

Please sign in to comment.