summarylogtreecommitdiffstats
path: root/penpot-exporter.service
blob: 465d64f0625934d592e0c93b29e6dd19def20b9e (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
[Unit]
Description=penpot exporter
After=penpot.service
After=redis.service

[Service]
Type=exec
User=penpot
WorkingDirectory=/var/lib/penpot
EnvironmentFile=-/etc/conf.d/penpot-exporter
ExecStart=/usr/bin/penpot-exporter
Restart=on-failure
RestartSec=30s

# Optional hardening to improve security
ReadWritePaths=/var/lib/penpot
NoNewPrivileges=yes
MemoryDenyWriteExecute=false
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=strict
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictRealtime=true
LockPersonality=true
ProtectKernelLogs=true
ProtectKernelTunables=true
ProtectHostname=true
ProtectKernelModules=true
PrivateUsers=true
ProtectClock=true
SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service

[Install]
WantedBy=multi-user.target