summarylogtreecommitdiffstats
path: root/gotify-server.service
blob: 12fd68de9e1b0cceb3ad794f0a67358058c4086e (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
[Unit]
Description=Gotify Server
After=network.target
ConditionPathIsDirectory=%L/gotify

[Service]
Type=simple
User=gotify
Group=gotify
ExecStart=/usr/bin/gotify-server

ConfigurationDirectory=gotify
LogsDirectory=gotify
StateDirectory=gotify
StateDirectoryMode=0700
StandardOutput=append:%L/gotify/server.log

UMask=0027
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
RemoveIPC=true
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources

[Install]
WantedBy=multi-user.target