41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
# 生產環境配置範例
|
|
# 複製此檔案為 .env.production 並修改相應值
|
|
|
|
# === Flask 應用設定 ===
|
|
FLASK_ENV=production
|
|
SECRET_KEY=your_super_secret_production_key_here_change_me
|
|
|
|
# === 資料庫設定 ===
|
|
DATABASE_URL=mysql+pymysql://prod_user:prod_password@mysql.company.com:3306/prod_db
|
|
|
|
# === Redis 快取設定 ===
|
|
REDIS_URL=redis://redis:6379/0
|
|
|
|
# === CDN 設定 ===
|
|
CDN_DOMAIN=cdn.yourcompany.com
|
|
|
|
# === LDAP 設定 ===
|
|
LDAP_SERVER=ldap.company.com
|
|
LDAP_PORT=389
|
|
LDAP_USE_SSL=true
|
|
LDAP_SEARCH_BASE=DC=company,DC=com
|
|
LDAP_BIND_USER_DN=CN=service_account,CN=Users,DC=company,DC=com
|
|
LDAP_BIND_USER_PASSWORD=service_account_password
|
|
LDAP_USER_LOGIN_ATTR=userPrincipalName
|
|
|
|
# === SMTP 設定 ===
|
|
SMTP_SERVER=smtp.company.com
|
|
SMTP_PORT=587
|
|
SMTP_USE_TLS=true
|
|
SMTP_SENDER_EMAIL=temp-spec@company.com
|
|
SMTP_SENDER_PASSWORD=smtp_password
|
|
SMTP_AUTH_REQUIRED=true
|
|
|
|
# === ONLYOFFICE 設定 ===
|
|
ONLYOFFICE_JWT_SECRET=your_onlyoffice_jwt_secret_production_key
|
|
|
|
# === 服務端口設定 ===
|
|
APP_PORT=12010
|
|
ONLYOFFICE_PORT=12011
|
|
NGINX_PORT=80
|
|
NGINX_SSL_PORT=443 |