Initial commit: Daily News App
企業內部新聞彙整與分析系統 - 自動新聞抓取 (Digitimes, 經濟日報, 工商時報) - AI 智慧摘要 (OpenAI/Claude/Ollama) - 群組管理與訂閱通知 - 已清理 Python 快取檔案 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
68
.env.example
Normal file
68
.env.example
Normal file
@@ -0,0 +1,68 @@
|
||||
# ===========================================
|
||||
# 每日報導 APP 環境設定
|
||||
# ===========================================
|
||||
|
||||
# 應用程式設定
|
||||
APP_NAME=每日報導APP
|
||||
APP_ENV=development
|
||||
DEBUG=true
|
||||
SECRET_KEY=your-secret-key-change-in-production
|
||||
|
||||
# 資料庫設定
|
||||
DB_HOST=localhost
|
||||
DB_PORT=3306
|
||||
DB_NAME=daily_news_app
|
||||
DB_USER=root
|
||||
DB_PASSWORD=your-password
|
||||
|
||||
# JWT 設定
|
||||
JWT_SECRET_KEY=your-jwt-secret-key
|
||||
JWT_ALGORITHM=HS256
|
||||
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=480
|
||||
|
||||
# AD/LDAP 設定
|
||||
LDAP_SERVER=ldap://your-ad-server.com
|
||||
LDAP_PORT=389
|
||||
LDAP_BASE_DN=DC=company,DC=com
|
||||
LDAP_BIND_DN=CN=service_account,OU=Users,DC=company,DC=com
|
||||
LDAP_BIND_PASSWORD=
|
||||
|
||||
# LLM 設定(三選一:gemini / openai / ollama)
|
||||
LLM_PROVIDER=gemini
|
||||
|
||||
# Google Gemini API
|
||||
GEMINI_API_KEY=
|
||||
GEMINI_MODEL=gemini-1.5-pro
|
||||
|
||||
# OpenAI API
|
||||
OPENAI_API_KEY=
|
||||
OPENAI_MODEL=gpt-4o
|
||||
|
||||
# Ollama 地端部署
|
||||
OLLAMA_ENDPOINT=http://localhost:11434
|
||||
OLLAMA_MODEL=llama3
|
||||
|
||||
# SMTP 設定
|
||||
SMTP_HOST=smtp.gmail.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USERNAME=
|
||||
SMTP_PASSWORD=
|
||||
SMTP_FROM_EMAIL=noreply@company.com
|
||||
SMTP_FROM_NAME=每日報導系統
|
||||
|
||||
# 爬蟲設定
|
||||
CRAWL_SCHEDULE_TIME=08:00
|
||||
CRAWL_REQUEST_DELAY=3
|
||||
CRAWL_MAX_RETRIES=3
|
||||
|
||||
# Digitimes 登入
|
||||
DIGITIMES_USERNAME=
|
||||
DIGITIMES_PASSWORD=
|
||||
|
||||
# 資料保留
|
||||
DATA_RETENTION_DAYS=60
|
||||
|
||||
# PDF 設定
|
||||
PDF_LOGO_PATH=
|
||||
PDF_HEADER_TEXT=
|
||||
PDF_FOOTER_TEXT=本報告僅供內部參考使用
|
||||
Reference in New Issue
Block a user