Add Navidrom assets
This commit is contained in:
parent
8043668fa2
commit
1e0c8ebc9f
2 changed files with 49 additions and 0 deletions
47
run/navidrome/workspace/navidrome.service
Normal file
47
run/navidrome/workspace/navidrome.service
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Navidrome Music Server and Streamer compatible with Subsonic/Airsonic
|
||||||
|
After=remote-fs.target network.target
|
||||||
|
AssertPathExists=/var/lib/navidrome
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=navidrome
|
||||||
|
Group=navidrome
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/opt/navidrome/navidrome --configfile "/var/lib/navidrome/navidrome.toml"
|
||||||
|
WorkingDirectory=/var/lib/navidrome
|
||||||
|
TimeoutStopSec=20
|
||||||
|
KillMode=process
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
# See https://www.freedesktop.org/software/systemd/man/systemd.exec.html
|
||||||
|
DevicePolicy=closed
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
PrivateTmp=yes
|
||||||
|
PrivateUsers=yes
|
||||||
|
ProtectControlGroups=yes
|
||||||
|
ProtectKernelModules=yes
|
||||||
|
ProtectKernelTunables=yes
|
||||||
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||||||
|
RestrictNamespaces=yes
|
||||||
|
RestrictRealtime=yes
|
||||||
|
SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap
|
||||||
|
ReadWritePaths=/var/lib/navidrome
|
||||||
|
|
||||||
|
# You can uncomment the following line if you're not using the jukebox This
|
||||||
|
# will prevent navidrome from accessing any real (physical) devices
|
||||||
|
PrivateDevices=yes
|
||||||
|
|
||||||
|
# You can change the following line to `strict` instead of `full` if you don't
|
||||||
|
# want navidrome to be able to write anything on your filesystem outside of
|
||||||
|
# /var/lib/navidrome.
|
||||||
|
ProtectSystem=strict
|
||||||
|
|
||||||
|
# You can uncomment the following line if you don't have any media in /home/*.
|
||||||
|
# This will prevent navidrome from ever reading/writing anything there.
|
||||||
|
ProtectHome=true
|
||||||
|
|
||||||
|
# You can customize some Navidrome config options by setting environment variables here. Ex:
|
||||||
|
#Environment=ND_BASEURL="/navidrome"
|
2
run/navidrome/workspace/navidrome.toml
Normal file
2
run/navidrome/workspace/navidrome.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# For more options, check doc: https://www.navidrome.org/docs/usage/configuration-options/#available-options
|
||||||
|
MusicFolder = "/var/lib/music"
|
Loading…
Add table
Reference in a new issue