ddb8cb8471
- 将admin默认密码从admin123修改为Zhidi@n2023 - 更新数据库中admin用户密码哈希 - 更新后端配置、环境变量模板及测试脚本中的密码 - 移除登录页默认管理员账户密码提示文字 - 清空登录表单密码默认值,避免泄露 - 重新构建前端dist产物
30 lines
947 B
Bash
30 lines
947 B
Bash
# Database
|
|
DATABASE_URL=postgresql+psycopg2://pdg:pdg_secret_2024@localhost:5432/prop_data_guard
|
|
REDIS_URL=redis://localhost:6379/0
|
|
|
|
# Security
|
|
SECRET_KEY=prop-data-guard-super-secret-key-change-in-production
|
|
# Fernet-compatible encryption key for database passwords (32 bytes, base64 url-safe).
|
|
# Generate one with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
|
|
# IMPORTANT: Keep this key safe and consistent across all backend instances.
|
|
DB_ENCRYPTION_KEY=
|
|
|
|
# MinIO
|
|
MINIO_ENDPOINT=localhost:9000
|
|
MINIO_ACCESS_KEY=pdgminio
|
|
MINIO_SECRET_KEY=pdgminio_secret_2024
|
|
MINIO_SECURE=false
|
|
MINIO_BUCKET_NAME=pdg-files
|
|
|
|
# CORS
|
|
CORS_ORIGINS=["http://localhost:5173", "http://127.0.0.1:5173"]
|
|
|
|
# Auth
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
|
REFRESH_TOKEN_EXPIRE_DAYS=7
|
|
|
|
# Default superuser (created on first startup)
|
|
FIRST_SUPERUSER_USERNAME=admin
|
|
FIRST_SUPERUSER_PASSWORD=Zhidi@n2023
|
|
FIRST_SUPERUSER_EMAIL=admin@datapo.com
|