fix(security): complete security and delivery compliance remediation
This commit is contained in:
+11
-2
@@ -13,10 +13,17 @@ DEBUG=false
|
||||
|
||||
# 应用密钥 (使用 openssl rand -hex 32 生成)
|
||||
SECRET_KEY=your-secret-key-change-in-production
|
||||
# OLT SSH 密码加密密钥;请通过受控密钥服务或受限环境变量注入,切勿提交至仓库
|
||||
# 生成示例:python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
|
||||
CREDENTIAL_ENCRYPTION_KEY=
|
||||
|
||||
# 时区设置
|
||||
TZ=Asia/Shanghai
|
||||
|
||||
# 宿主机发布端口。并行验证时可改为未占用端口,确认后再切换为正式端口。
|
||||
BACKEND_PORT=8001
|
||||
FRONTEND_PORT=18062
|
||||
|
||||
# ============================================
|
||||
# 数据库配置 (PostgreSQL)
|
||||
# ============================================
|
||||
@@ -67,6 +74,8 @@ CASDOOR_APP_NAME=h3c-onu-ms
|
||||
|
||||
# Casdoor 回调地址(部署后改为实际域名)
|
||||
CASDOOR_REDIRECT_URL=
|
||||
# 为空时使用 CASDOOR_ENDPOINT;JWT 的 iss 必须与此值一致
|
||||
CASDOOR_ISSUER=
|
||||
|
||||
# ============================================
|
||||
# SSH连接配置
|
||||
@@ -127,7 +136,7 @@ IMC_API_URL=
|
||||
IMC_API_USERNAME=
|
||||
IMC_API_PASSWORD=
|
||||
# 本地认证不需要 SSL 验证
|
||||
IMC_API_VERIFY_SSL=false
|
||||
IMC_API_VERIFY_SSL=true
|
||||
IMC_CONNECT_TIMEOUT=5
|
||||
IMC_READ_TIMEOUT=20
|
||||
|
||||
@@ -206,4 +215,4 @@ BACKUP_SCHEDULE="0 2 * * *"
|
||||
# DEBUG=true
|
||||
# DATABASE_URL=postgresql://h3c_user:password@localhost:5432/h3c_onu_ms_dev
|
||||
# REDIS_URL=redis://localhost:6379/0
|
||||
# VITE_API_BASE_URL=http://localhost:8000
|
||||
# VITE_API_BASE_URL=http://localhost:8000
|
||||
|
||||
Reference in New Issue
Block a user