blob: b7c557f46ae6bee58bfd3de55788726f4707544f (
plain) (
blame)
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
|
# From https://github.com/espebra/filebin/blob/master/etc/systemd/filebin.service.example
[Unit]
Description=Filebin
Requires=network.target
After=network.target
[Service]
ExecStart=/go/filebin \
--filedir /var/lib/filebin/files \
--tempdir /tmp \
--baseurl https://f.dnns.no \
--port 8304 \
--access-log /var/log/filebin/access.log \
--expiration 604800
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=filebin
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectControlGroups=true
ProtectKernelModules=true
InaccessiblePaths=/etc /home /opt /srv /var/local /var/mail
BindPaths=/var/log/filebin /var/lib/filebin
RemoveIPC=true
User=filebin
Group=filebin
Restart=on-failure
[Install]
WantedBy=multi-user.target
|