forked from hectorm/demergi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demergi.service
43 lines (41 loc) · 1003 Bytes
/
demergi.service
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
[Unit]
Description=Demergi
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
EnvironmentFile=-/opt/demergi/demergi.conf
ExecStart=/usr/bin/node /opt/demergi/demergi.js
#ReadOnlyPaths=/opt/demergi/certs/ca/cert.pem
#ReadOnlyPaths=/opt/demergi/certs/server/key.pem
#ReadOnlyPaths=/opt/demergi/certs/server/cert.pem
UMask=0077
DynamicUser=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
PrivateUsers=yes
ProtectHostname=yes
ProtectClock=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
ProtectProc=invisible
IPAccounting=yes
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
LockPersonality=yes
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources
SystemCallErrorNumber=EPERM
SystemCallArchitectures=native
CapabilityBoundingSet=
DevicePolicy=closed
ProcSubset=pid
NoNewPrivileges=yes
[Install]
WantedBy=default.target