Files
TEMP_spec_system_V3/.env.example
beabigegg bdfda30ca8 3rd
2025-08-28 11:51:04 +08:00

57 lines
1.5 KiB
Plaintext

# Flask 應用程式設定
SECRET_KEY=your-super-secret-and-random-string-here
FLASK_ENV=production
APP_PORT=5000
UPLOAD_FOLDER=uploads
# 資料庫設定
DB_ROOT_PASSWORD=tempspec123
DB_NAME=tempspec_db
DB_USER=tempspec_user
DB_PASSWORD=tempspec_pass
DB_PORT=3306
# LDAP/Active Directory 設定
LDAP_SERVER=ldap://your-dc.company.com
LDAP_PORT=389
LDAP_USE_SSL=False
LDAP_SEARCH_BASE=DC=company,DC=com
LDAP_BIND_USER_DN=CN=service,DC=company,DC=com
LDAP_BIND_USER_PASSWORD=service_password
LDAP_USER_LOGIN_ATTR=userPrincipalName
# SMTP 郵件設定
# 方案 1: 使用 Port 25 (無需認證) - 推薦用於內部郵件伺服器
SMTP_SERVER=mail.panjit.com.tw
SMTP_PORT=25
SMTP_USE_TLS=false
SMTP_USE_SSL=false
SMTP_AUTH_REQUIRED=false
SMTP_SENDER_EMAIL=temp-spec-system@panjit.com.tw
SMTP_SENDER_PASSWORD=
# 方案 2: 使用 Port 587 (需要認證) - 用於外部 SMTP 或有認證需求的伺服器
# SMTP_SERVER=smtp.company.com
# SMTP_PORT=587
# SMTP_USE_TLS=true
# SMTP_USE_SSL=false
# SMTP_AUTH_REQUIRED=true
# SMTP_SENDER_EMAIL=noreply@company.com
# SMTP_SENDER_PASSWORD=smtp_password
# 方案 3: 使用 Port 465 (SSL + 認證) - 用於安全連接
# SMTP_SERVER=smtp.gmail.com
# SMTP_PORT=465
# SMTP_USE_TLS=false
# SMTP_USE_SSL=true
# SMTP_AUTH_REQUIRED=true
# SMTP_SENDER_EMAIL=yourapp@gmail.com
# SMTP_SENDER_PASSWORD=app_password
# ONLYOFFICE Document Server 設定
ONLYOFFICE_PORT=8080
ONLYOFFICE_JWT_SECRET=your-onlyoffice-jwt-secret-string
# Nginx 設定 (可選)
NGINX_PORT=80
NGINX_SSL_PORT=443