2022-08-09 04:43:51 -04:00
|
|
|
[Service]
|
2023-07-06 04:57:45 -04:00
|
|
|
CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_NET_BIND_SERVICE CAP_SETUID CAP_SETGID
|
2022-08-09 04:43:51 -04:00
|
|
|
LockPersonality=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
PrivateIPC=true
|
|
|
|
PrivateTmp=true
|
|
|
|
ProcSubset=pid
|
|
|
|
ProtectClock=true
|
|
|
|
ProtectControlGroups=true
|
2022-08-10 08:27:43 -04:00
|
|
|
ProtectHome=true
|
|
|
|
ProtectHostname=true
|
2022-08-09 04:43:51 -04:00
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectProc=invisible
|
|
|
|
ProtectSystem=strict
|
|
|
|
ReadWritePaths=/var/lib/nginx /var/log/nginx -/var/cache/nginx
|
2022-09-26 16:03:12 -04:00
|
|
|
Restart=always
|
|
|
|
RestartSec=1
|
2022-08-09 04:43:51 -04:00
|
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
|
|
|
RestrictNamespaces=true
|
|
|
|
RestrictRealtime=true
|
|
|
|
RestrictSUIDSGID=true
|
2022-09-26 15:37:43 -04:00
|
|
|
RuntimeDirectory=nginx
|
|
|
|
RuntimeDirectoryMode=700
|
2022-08-09 04:43:51 -04:00
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallFilter=@system-service
|
|
|
|
SystemCallFilter=~@obsolete
|