Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
691 B
Desktop File
23 lines
691 B
Desktop File
[Unit]
|
|
Description=SDR archive: read-only audio for the radio page (sdr_web on the Raspberry Pi proxies to it)
|
|
After=network-online.target srv-storage.mount
|
|
RequiresMountsFor=/srv/storage
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/python3 -I /opt/homelab/sdr-archive/sdr_archive_http.py --bind 192.168.88.221 --port 18091 --root /srv/storage/sdr-archive
|
|
DynamicUser=yes
|
|
ProtectSystem=strict
|
|
ProtectHome=yes
|
|
PrivateTmp=yes
|
|
ReadOnlyPaths=/srv/storage/sdr-archive
|
|
NoNewPrivileges=yes
|
|
RestrictAddressFamilies=AF_INET AF_INET6
|
|
# only the Pi may fetch archived audio
|
|
IPAddressDeny=any
|
|
IPAddressAllow=192.168.88.35 127.0.0.1
|
|
MemoryMax=100M
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target srv-storage.mount
|