Backend: - schedule_tenant: NC 新容器自動 pgsql 安裝 (_nc_db_check 全新容器處理) - schedule_tenant: NC 初始化加入 Redis + APCu memcache 設定 (修正 OIDC invalid_state) - schedule_tenant: 新租戶 KC realm 自動設定 accessCodeLifespan=600s (修正 authentication_expired) - schedule_account: NC Mail 帳號自動設定 (nc_mail_result/nc_mail_done_at) - schedule_account: NC 台灣國定假日行事曆自動訂閱 (CalDAV MKCALENDAR) - nextcloud_client: 新增 subscribe_calendar() CalDAV 訂閱方法 - settings: 新增系統設定 API (site_title/version/timezone/SSO/Keycloak) - models/result: 新增 nc_mail_result, nc_mail_done_at 欄位 - alembic: 遷移 002(system_settings) 003(keycloak_admin) 004(nc_mail_result) Frontend (Admin Portal): - 新增完整管理後台 (index/tenants/accounts/servers/schedules/logs/settings/system-status) - api.js: Keycloak JS Adapter SSO 整合 (PKCE/S256, fallback KC JS 來源, 自動 token 更新) - index.html: Promise.allSettled 取代 Promise.all,防止單一 API 失敗影響整頁 - 所有頁面加入 try/catch + toast 錯誤處理 - 新增品牌 LOGO 與 favicon Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
566 B
Plaintext
35 lines
566 B
Plaintext
[server]
|
|
# 監聽所有介面
|
|
hosts = 0.0.0.0:5232
|
|
|
|
# 最大連線數
|
|
max_connections = 100
|
|
|
|
# 逾時設定
|
|
timeout = 60
|
|
|
|
[auth]
|
|
# 使用 HTTP Header 認證 (由 Keycloak OAuth2 Proxy 提供)
|
|
type = http_x_remote_user
|
|
|
|
[storage]
|
|
# 檔案系統儲存
|
|
type = multifilesystem
|
|
|
|
# 資料目錄
|
|
filesystem_folder = /data/collections
|
|
|
|
# Hook for changes (optional - for git versioning)
|
|
# hook = git add -A && git commit -m "Changes by %(user)s"
|
|
|
|
[web]
|
|
# 啟用 Web 介面
|
|
type = internal
|
|
|
|
[logging]
|
|
# 日誌等級
|
|
level = info
|
|
|
|
# 日誌格式
|
|
# debug 模式可設為 debug
|