graphene-os-server-infrastr.../systemd/system/nginx.service.d/local.conf

30 lines
768 B
Plaintext
Raw Normal View History

2022-08-09 04:43:51 -04:00
[Service]
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
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
RuntimeDirectory=nginx
RuntimeDirectoryMode=700
2022-08-09 04:43:51 -04:00
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@obsolete