feat(arr): add prowlarr, radarr and seerr roles

This commit is contained in:
Clément Désiles
2026-09-18 18:53:43 +02:00
parent 6ba208a455
commit a73fb2aa29
24 changed files with 970 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
# Seerr vhost with Let's Encrypt (Certbot)
# Managed by Ansible - DO NOT EDIT MANUALLY
server {
listen 80;
listen [::]:80;
server_name {{ seerr_nginx_hostname }};
# Certbot webroot for ACME challenges
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
# Redirect to HTTPS
location / {
return 301 https://$server_name$request_uri;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name {{ seerr_nginx_hostname }};
# Let's Encrypt certificates (managed by Certbot)
ssl_certificate /etc/letsencrypt/live/{{ seerr_nginx_hostname }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ seerr_nginx_hostname }}/privkey.pem;
# SSL configuration
ssl_protocols {{ nginx_ssl_protocols | default('TLSv1.3') }};
ssl_prefer_server_ciphers on;
{% if nginx_log_backend | default('journald') == 'journald' %}
access_log syslog:server=unix:/dev/log,nohostname,tag=nginx_seerr;
error_log syslog:server=unix:/dev/log,nohostname,tag=nginx_seerr;
{% else %}
access_log /var/log/nginx/{{ seerr_nginx_hostname }}_access.log main;
error_log /var/log/nginx/{{ seerr_nginx_hostname }}_error.log;
{% endif %}
client_max_body_size 20M;
location / {
proxy_pass http://127.0.0.1:{{ seerr_port }};
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebSocket support for real-time UI updates
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_buffering off;
proxy_read_timeout 3600s;
}
}
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=Seerr Media Request Manager
[Service]
Type=notify
NotifyAccess=all
WorkingDirectory={{ podman_projects_dir | default('/opt/podman') }}/seerr
ExecStart=/usr/bin/podman kube play --replace --service-container=true --network=pasta:--map-host-loopback={{ podman_gw_gateway }} seerr.yaml
ExecStop=/usr/bin/podman kube down seerr.yaml
Restart=on-failure
RestartSec=10
TimeoutStartSec=180
[Install]
WantedBy=default.target
+50
View File
@@ -0,0 +1,50 @@
---
apiVersion: v1
kind: Pod
metadata:
name: seerr
labels:
app: seerr
annotations:
# Map the rootless pod user onto the image's `node` UID/GID so it can
# write the host-owned config directory.
io.podman.annotations.userns: "keep-id:uid={{ seerr_container_uid }},gid={{ seerr_container_gid }}"
spec:
containers:
- name: seerr
image: {{ seerr_image }}:{{ seerr_version }}
ports:
- containerPort: {{ seerr_port }}
hostPort: {{ seerr_port }}
env:
- name: TZ
value: "{{ seerr_timezone }}"
- name: LOG_LEVEL
value: "{{ seerr_log_level }}"
- name: PORT
value: "{{ seerr_port }}"
volumeMounts:
- name: localtime
mountPath: /etc/localtime
readOnly: true
- name: config
mountPath: /app/config
livenessProbe:
httpGet:
path: /api/v1/settings/public
port: {{ seerr_port }}
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 10
failureThreshold: 3
restartPolicy: Never
volumes:
- name: localtime
hostPath:
path: /etc/localtime
type: File
- name: config
hostPath:
path: {{ seerr_config_dir }}
type: Directory