This commit is contained in:
beabigegg
2025-09-12 08:00:56 +08:00
commit a408ce402d
54 changed files with 5626 additions and 0 deletions

41
.env.production Normal file
View File

@@ -0,0 +1,41 @@
# 生產環境配置範例
# 複製此檔案為 .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