精简 app.ini:仅保留端口/数据目录/JWT,业务项改由管理后台配置。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 16:58:30 +08:00
parent 48db333272
commit 81f5d451bc
10 changed files with 24 additions and 431 deletions

View File

@@ -23,12 +23,9 @@ type SitemapURL struct {
}
// SitePublicBaseURL 公开站点根地址(无尾斜杠)
// 优先 OIDC / 配置中的 RootURL否则根据请求 Host 推断
func (s *ForumSettingsService) SitePublicBaseURL(cfgRoot, requestOrigin string) string {
// 优先管理后台 OIDC 中的 ROOT_URL否则根据请求 Host 推断
func (s *ForumSettingsService) SitePublicBaseURL(requestOrigin string) string {
root := normalizeRootURL(s.getString(SettingOIDCRootURL, ""))
if root == "" {
root = normalizeRootURL(cfgRoot)
}
if root == "" {
root = normalizeRootURL(requestOrigin)
}