blob: fb92d5de77c5136a01df399313801a9481d11077 (
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
|
[Unit]
Description=Gotenberg Daemon
Wants=network-online.target
After=network-online.target
[Service]
Restart=on-failure
EnvironmentFile=-/etc/default/gotenberg
ExecStart=/usr/bin/gotenberg $APPEND_ARGS
RestartSec=5
TimeoutStopSec=10
#isolation
DynamicUser=yes
LockPersonality=yes
NoNewPrivileges=yes
PrivateMounts=yes
PrivateTmp=yes
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=no
ProtectKernelTunables=no
ProtectSystem=yes
RemoveIPC=yes
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
[Install]
WantedBy=multi-user.target
|