2022-08-09 04:43:51 -04:00
|
|
|
[Service]
|
2022-08-10 09:07:25 -04:00
|
|
|
CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_NET_BIND_SERVICE CAP_SETUID CAP_SETGID
|
2023-02-17 16:37:57 -05:00
|
|
|
ExecStart=
|
|
|
|
ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid;'
|
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
|