summarylogtreecommitdiffstats
path: root/navidrome.service
blob: e5f172c663bc659141d0c9a4ef82ca990828c0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[Unit]
Description=Navidrome Music server
After=network.target
Documentation=https://www.navidrome.org/docs/
Documentation=https://github.com/navidrome/navidrome/blob/master/contrib/navidrome.service

[Service]
User=navidrome
Group=navidrome

ExecStart=/usr/bin/navidrome --configfile /etc/navidrome/navidrome.toml

StateDirectory=navidrome
WorkingDirectory=/var/lib/navidrome

# Create this as the user who adds Music files
ReadOnlyPaths=/var/lib/Music

EnvironmentFile=-/etc/navidrome/envfile

CapabilityBoundingSet=
AmbientCapabilities=
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
ProtectProc=invisible
RemoveIPC=true
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=~@clock @debug @module @mount @obsolete @privileged @reboot @setuid @swap @resources

[Install]
WantedBy=multi-user.target