mirror of
https://github.com/fscotto/infra.git
synced 2026-11-26 13:49:52 +00:00
Add Atlas qBittorrent service configuration
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
; Seeded once by Ansible. Subsequent settings are managed through the Web UI.
|
||||
[BitTorrent]
|
||||
Session\DefaultSavePath=/downloads
|
||||
Session\TempPath=/downloads/.incomplete
|
||||
Session\TempPathEnabled=true
|
||||
Session\Port=6881
|
||||
[Meta]
|
||||
MigrationVersion=9999
|
||||
[Network]
|
||||
PortForwardingEnabled=false
|
||||
[Preferences]
|
||||
WebUI\Port={{ atlas_qbittorrent_web_port }}
|
||||
WebUI\LocalHostAuth=true
|
||||
WebUI\AuthSubnetWhitelistEnabled=false
|
||||
WebUI\CSRFProtection=true
|
||||
WebUI\ClickjackingProtection=true
|
||||
WebUI\HostHeaderValidation=true
|
||||
@@ -0,0 +1,33 @@
|
||||
# Managed by Ansible. No VPN, host networking or router port forwarding.
|
||||
[Unit]
|
||||
Description=Atlas rootless qBittorrent
|
||||
RequiresMountsFor={{ atlas_qbittorrent_state_dir }} {{ atlas_qbittorrent_downloads_dir }}
|
||||
|
||||
[Container]
|
||||
ContainerName=atlas-qbittorrent
|
||||
Image={{ atlas_qbittorrent_image }}
|
||||
UserNS=keep-id
|
||||
User={{ atlas_admin_uid }}
|
||||
Group={{ atlas_admin_gid }}
|
||||
PublishPort={{ ansible_host }}:{{ atlas_qbittorrent_web_port }}:{{ atlas_qbittorrent_web_port }}
|
||||
Environment=QBT_LEGAL_NOTICE=confirm
|
||||
Environment=QBT_WEBUI_PORT={{ atlas_qbittorrent_web_port }}
|
||||
Environment=XDG_CACHE_HOME=/tmp/cache
|
||||
Environment=TZ={{ atlas_timezone }}
|
||||
Environment=UMASK=007
|
||||
Volume={{ atlas_qbittorrent_state_dir }}:/config:Z
|
||||
Volume={{ atlas_qbittorrent_downloads_dir }}:/downloads:z
|
||||
ReadOnly=true
|
||||
Tmpfs=/tmp:rw,nosuid,nodev
|
||||
NoNewPrivileges=true
|
||||
DropCapability=all
|
||||
StopTimeout=1800
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
TimeoutStartSec=900
|
||||
TimeoutStopSec=1900
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user