security(egress,guards,docker): add Zero-Trust egress guard, SQLite rate limiter, proxy CIDR trust & Docker hardening
This commit is contained in:
parent
afc2d6358a
commit
005c82e6bf
8 changed files with 616 additions and 42 deletions
|
|
@ -7,13 +7,22 @@ services:
|
|||
restart: unless-stopped
|
||||
user: "1000:1000"
|
||||
read_only: true
|
||||
cap_drop:
|
||||
- ALL
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
mem_limit: ${GCOORD_MEM_LIMIT:-512m}
|
||||
pids_limit: 128
|
||||
tmpfs:
|
||||
- /tmp
|
||||
- /tmp:rw,noexec,nosuid,nodev,size=64m
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- HOST=0.0.0.0
|
||||
- GCOORD_DATA_DIR=/data
|
||||
- TRUST_CLOUDFLARE=true
|
||||
- GCOORD_THROTTLE_MODE=${GCOORD_THROTTLE_MODE:-low-resource}
|
||||
- NODE_OPTIONS=--max-old-space-size=${GCOORD_NODE_MAX_OLD_SPACE:-384}
|
||||
secrets:
|
||||
- gcoord_master_key
|
||||
volumes:
|
||||
|
|
@ -26,6 +35,13 @@ services:
|
|||
image: cloudflare/cloudflared:latest
|
||||
container_name: gcoordinator-tunnel
|
||||
restart: unless-stopped
|
||||
read_only: true
|
||||
cap_drop:
|
||||
- ALL
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
mem_limit: 128m
|
||||
pids_limit: 64
|
||||
command: tunnel --no-autoupdate run
|
||||
environment:
|
||||
- TUNNEL_TOKEN=${CLOUDFLARED_TUNNEL_TOKEN}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue