fix: remove ProtectSystem/ReadWritePaths from systemd units
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 47s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 47s
ProtectSystem=strict requires /run/systemd/unit-root paths to exist which fails on production. Worker only needs network access (Redis/MySQL). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
bd60c2786f
commit
24ceb1353e
@ -20,10 +20,6 @@ EnvironmentFile=/opt/zhixi/env/.env.production
|
|||||||
|
|
||||||
# Security
|
# Security
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
ProtectSystem=strict
|
|
||||||
ProtectHome=yes
|
|
||||||
ReadWritePaths=/opt/zhixi/api-server/uploads
|
|
||||||
ReadWritePaths=/opt/zhixi/api-server/prisma
|
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
|
|||||||
@ -26,9 +26,6 @@ MemoryMax=512M
|
|||||||
|
|
||||||
# Security
|
# Security
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
ProtectSystem=strict
|
|
||||||
ProtectHome=yes
|
|
||||||
ReadWritePaths=/opt/zhixi/backend/uploads
|
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user