feat: support encrypt secret and configs (#931)

This commit is contained in:
2022-12-25 18:55:00 +08:00
committed by GitHub
parent 19f7556589
commit 9ed8b32f9e
22 changed files with 552 additions and 55 deletions

View File

@@ -4,7 +4,7 @@ services:
app:
container_name: mx-server
image: innei/mx-server:latest
command: node index.js --redis_host=redis --db_host=mongo --allowed_origins=${ALLOWED_ORIGINS} --jwt_secret=${JWT_SECRET} --color
command: node index.js --redis_host=redis --db_host=mongo --allowed_origins=${ALLOWED_ORIGINS} --jwt_secret=${JWT_SECRET} --color --encrypt_key={ENCRYPT_KEY} --encrypt_enable={ENCRYPT_ENABLE}
environment:
- TZ=Asia/Shanghai
- NODE_ENV=production