security: harden data auth and deployment
This commit is contained in:
@@ -15,6 +15,8 @@ services:
|
||||
AUTH_COOKIE_NAME: magent_beta_auth
|
||||
AUTH_STATE_COOKIE_NAME: magent_beta_logged_in
|
||||
AUTH_COOKIE_DOMAIN: beta.grizzlyflix.co.nz
|
||||
AUTH_COOKIE_SECURE: "true"
|
||||
AUTH_COOKIE_SAMESITE: strict
|
||||
SQLITE_PATH: /app/data/magent.db
|
||||
LOG_FILE: /app/data/magent.log
|
||||
SITE_BANNER_ENABLED: "true"
|
||||
@@ -26,3 +28,10 @@ services:
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
restart: unless-stopped
|
||||
read_only: true
|
||||
cap_drop: ["ALL"]
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
init: true
|
||||
tmpfs:
|
||||
- /tmp:rw,noexec,nosuid,size=64m,uid=1000,gid=1000
|
||||
- /app/frontend/.next/cache:rw,noexec,nosuid,size=128m,uid=1000,gid=1000
|
||||
|
||||
Reference in New Issue
Block a user