🎬 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>
70 lines
2.4 KiB
Django/Jinja
70 lines
2.4 KiB
Django/Jinja
#!/bin/bash
|
|
# Configure Prowlarr Applications
|
|
|
|
echo "🔧 Configuring Prowlarr Applications..."
|
|
|
|
# Add Sonarr
|
|
curl -X POST 'http://localhost:9696/api/v1/applications' \
|
|
-H 'X-Api-Key: {{ api_keys.prowlarr }}' \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{
|
|
"name": "Sonarr",
|
|
"syncLevel": "fullSync",
|
|
"implementation": "Sonarr",
|
|
"configContract": "SonarrSettings",
|
|
"fields": [
|
|
{"name": "baseUrl", "value": "http://sonarr:8989"},
|
|
{"name": "apiKey", "value": "{{ api_keys.sonarr }}"},
|
|
{"name": "syncCategories", "value": [5000, 5030, 5040]}
|
|
]
|
|
}' || echo "Sonarr already configured or error occurred"
|
|
|
|
# Add Radarr
|
|
curl -X POST 'http://localhost:9696/api/v1/applications' \
|
|
-H 'X-Api-Key: {{ api_keys.prowlarr }}' \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{
|
|
"name": "Radarr",
|
|
"syncLevel": "fullSync",
|
|
"implementation": "Radarr",
|
|
"configContract": "RadarrSettings",
|
|
"fields": [
|
|
{"name": "baseUrl", "value": "http://radarr:7878"},
|
|
{"name": "apiKey", "value": "{{ api_keys.radarr }}"},
|
|
{"name": "syncCategories", "value": [2000, 2010, 2020, 2030, 2040, 2045, 2050, 2060]}
|
|
]
|
|
}' || echo "Radarr already configured or error occurred"
|
|
|
|
# Add Lidarr
|
|
curl -X POST 'http://localhost:9696/api/v1/applications' \
|
|
-H 'X-Api-Key: {{ api_keys.prowlarr }}' \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{
|
|
"name": "Lidarr",
|
|
"syncLevel": "fullSync",
|
|
"implementation": "Lidarr",
|
|
"configContract": "LidarrSettings",
|
|
"fields": [
|
|
{"name": "baseUrl", "value": "http://lidarr:8686"},
|
|
{"name": "apiKey", "value": "{{ api_keys.lidarr }}"},
|
|
{"name": "syncCategories", "value": [3000, 3010, 3020, 3030, 3040]}
|
|
]
|
|
}' || echo "Lidarr already configured or error occurred"
|
|
|
|
# Add Whisparr
|
|
curl -X POST 'http://localhost:9696/api/v1/applications' \
|
|
-H 'X-Api-Key: {{ api_keys.prowlarr }}' \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{
|
|
"name": "Whisparr",
|
|
"syncLevel": "fullSync",
|
|
"implementation": "Whisparr",
|
|
"configContract": "WhisparrSettings",
|
|
"fields": [
|
|
{"name": "baseUrl", "value": "http://whisparr:6969"},
|
|
{"name": "apiKey", "value": "{{ api_keys.whisparr }}"},
|
|
{"name": "syncCategories", "value": [6000, 6010, 6020, 6030, 6040, 6050, 6060, 6070]}
|
|
]
|
|
}' || echo "Whisparr already configured or error occurred"
|
|
|
|
echo "✅ Prowlarr applications configuration complete!" |