mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-15 21:07:34 -05:00
always create /var/cache/nginx for web servers
This avoids needing to restart nginx for ReadWritePaths to kick in after creating it.
This commit is contained in:
parent
fb9e4d6769
commit
c4af821eda
2 changed files with 3 additions and 2 deletions
|
|
@ -16,7 +16,8 @@ for host in ${hosts_web[@]}; do
|
|||
rsync --chmod=755 create-session-ticket-keys rotate-session-ticket-keys $remote:/usr/local/bin/
|
||||
rsync -r --delete etc/systemd/system/nginx.service.d/ $remote:/etc/systemd/system/nginx.service.d
|
||||
|
||||
ssh $remote "groupadd -fg 2100 tls
|
||||
ssh $remote "mkdir -pm755 /var/cache/nginx
|
||||
groupadd -fg 2100 tls
|
||||
mkdir -p -m 750 /etc/session-ticket-keys && chgrp tls /etc/session-ticket-keys
|
||||
systemctl daemon-reload &&
|
||||
systemctl enable create-session-ticket-keys.service rotate-session-ticket-keys.timer nginx"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ ProtectKernelModules=true
|
|||
ProtectKernelTunables=true
|
||||
ProtectProc=invisible
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/var/lib/nginx /var/log/nginx -/var/cache/nginx
|
||||
ReadWritePaths=/var/lib/nginx /var/log/nginx /var/cache/nginx
|
||||
Restart=always
|
||||
RestartMaxDelaySec=10s
|
||||
RestartSec=100ms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue