mirror of
https://github.com/ArcticFoxes-net/Synapse-Ubuntu-ZFS
synced 2024-11-13 22:21:33 -05:00
Update certbot-ocsp-fetcher.service
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
6366404f3d
commit
836246f9e3
@ -1,14 +1,57 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Automatic OCSP Fetcher
|
Description=Fetch OCSP responses for all certificates issued with Certbot
|
||||||
After=docker.service
|
|
||||||
Requires=network-online.target
|
|
||||||
Requires=docker.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=root
|
|
||||||
Group=root
|
|
||||||
ExecStart=/usr/local/bin/certbot-ocsp-fetcher -o /etc/nginx/ocsp-cache
|
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
||||||
[Install]
|
Restart=on-failure
|
||||||
WantedBy=multi-user.target
|
|
||||||
|
CacheDirectory=%N
|
||||||
|
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
ExecStart=%N --no-reload-webserver -o /var/cache/certbot-ocsp-fetcher
|
||||||
|
ExecStartPost=systemctl reload nginx.service
|
||||||
|
|
||||||
|
RestartSec=5
|
||||||
|
PrivateDevices=true
|
||||||
|
PrivateTmp=yes
|
||||||
|
PrivateUsers=yes
|
||||||
|
PrivateIPC=true
|
||||||
|
|
||||||
|
NoNewPrivileges=true
|
||||||
|
LockPersonality=true
|
||||||
|
|
||||||
|
CapabilityBoundingSet=
|
||||||
|
ProtectHome=yes
|
||||||
|
ProtectControlGroups=true
|
||||||
|
ProtectKernelTunables=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectKernelLogs=true
|
||||||
|
ProtectClock=true
|
||||||
|
ProtectProc=invisible
|
||||||
|
ProcSubset=pid
|
||||||
|
ProtectHostname=true
|
||||||
|
RemoveIPC=true
|
||||||
|
|
||||||
|
RestrictAddressFamilies=AF_INET6 AF_INET AF_UNIX
|
||||||
|
MemoryDenyWriteExecute=true
|
||||||
|
RestrictRealtime=true
|
||||||
|
RestrictNamespaces=true
|
||||||
|
RestrictSUIDSGID=true
|
||||||
|
|
||||||
|
DevicePolicy=strict
|
||||||
|
DeviceAllow=/dev/random r
|
||||||
|
DeviceAllow=/dev/urandom r
|
||||||
|
DeviceAllow=/dev/stdin r
|
||||||
|
DeviceAllow=/dev/stdout r
|
||||||
|
DeviceAllow=/dev/null w
|
||||||
|
|
||||||
|
ProtectSystem=strict
|
||||||
|
InaccessiblePaths=/root/
|
||||||
|
ReadOnlyPaths=/etc/letsencrypt
|
||||||
|
UMask=0077
|
||||||
|
|
||||||
|
SystemCallArchitectures=native
|
||||||
|
SystemCallFilter=@system-service
|
||||||
|
SystemCallFilter=~@clock @debug @module @mount @reboot @swap @resources @cpu-emulation @raw-io @obsolete @keyring @privileged
|
||||||
|
Loading…
Reference in New Issue
Block a user