Initial template repository
🎬 ARR Suite Template Bootstrap - Complete Media Automation Stack Features: - 16 production services (Prowlarr, Sonarr, Radarr, Plex, etc.) - One-command Ansible deployment - VPN-protected downloads via Gluetun - Tailscale secure access - Production-ready security (UFW, Fail2Ban) - Automated backups and monitoring - Comprehensive documentation Ready for customization and deployment to any VPS. Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
28
templates/sabnzbd-config-fix.sh.j2
Normal file
28
templates/sabnzbd-config-fix.sh.j2
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# SABnzbd Configuration Fix for Docker Service Communication
|
||||
# This script fixes the hostname verification issue that prevents
|
||||
# *arr services from connecting to SABnzbd
|
||||
|
||||
SABNZBD_CONFIG="/config/sabnzbd.ini"
|
||||
|
||||
# Wait for SABnzbd to create its config file
|
||||
while [ ! -f "$SABNZBD_CONFIG" ]; do
|
||||
echo "Waiting for SABnzbd config file to be created..."
|
||||
sleep 5
|
||||
done
|
||||
|
||||
# Check if host_whitelist needs to be updated
|
||||
if ! grep -q "sonarr, radarr, lidarr" "$SABNZBD_CONFIG"; then
|
||||
echo "Updating SABnzbd host_whitelist to allow *arr service connections..."
|
||||
|
||||
# Backup original config
|
||||
cp "$SABNZBD_CONFIG" "${SABNZBD_CONFIG}.backup"
|
||||
|
||||
# Update host_whitelist to include all service names
|
||||
sed -i 's/host_whitelist = \([^,]*\),/host_whitelist = \1, sonarr, radarr, lidarr, bazarr, prowlarr, whisparr, gluetun, localhost, 127.0.0.1,/' "$SABNZBD_CONFIG"
|
||||
|
||||
echo "SABnzbd host_whitelist updated successfully!"
|
||||
echo "Services can now connect to SABnzbd using container hostnames."
|
||||
else
|
||||
echo "SABnzbd host_whitelist already configured for service connections."
|
||||
fi
|
||||
Reference in New Issue
Block a user