summarylogtreecommitdiffstats
path: root/systemd.service
blob: ef06da25cf8a60d60b5f0b1ea39a0cb781999aa2 (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=Express.js proxy for Piped that injects OpenGraph meta to the HTML body.
After=network.target

[Service]
User=piped
EnvironmentFile=/etc/webapps/piped/html-proxy.env
WorkingDirectory=/usr/share/webapps/piped/html-proxy
ExecStart=/usr/bin/npm start
Restart=on-failure

PrivateTmp=true
NoNewPrivileges=true
ProtectSystem=strict
CapabilityBoundingSet=
RestrictNamespaces=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
PrivateDevices=true
RestrictSUIDSGID=true
RemoveIPC=true
ProtectClock=true
ProtectKernelLogs=true
SystemCallArchitectures=native
ProtectHostname=true
LockPersonality=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictRealtime=true
ProtectHome=true
ProtectProc=invisible
ProcSubset=pid
SystemCallFilter=~@swap @resources @reboot @raw-io @privileged @obsolete @mount @module @debug @cpu-emulation @clock
IPAddressDeny=localhost link-local multicast
UMask=0777

[Install]
WantedBy=multi-user.target