blob: 8b6eaa19d2e2b4df6c1a9216f058f83d25606402 (
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
|
[Unit]
Description=Filebrowser Service
After=network.target
Wants=network.target
[Service]
User=filebrowser
Group=filebrowser
Type=simple
WorkingDirectory=/var/lib/filebrowser
ConfigurationDirectory=filebrowser
RuntimeDirectory=filebrowser
LogsDirectory=filebrowser
StateDirectory=filebrowser
Environment=USER=filebrowser HOME=/var/lib/filebrowser
ExecStart=/usr/bin/filebrowser --config /etc/filebrowser/filebrowser.json
Restart=on-failure
RestartSec=2s
ReadWritePaths=/var/lib/filebrowser
LockPersonality=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=strict
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
[Install]
WantedBy=multi-user.target
|