72e6b46cde
- Branding: default app name MokoGitea -> MokoGIT; all standalone 'MokoGitea' brand strings, comments, and copyright headers -> MokoGIT - Special repo/config names: .mokogitea/.mokogitea-private -> .mokogit/ .mokogit-private (workflow discovery, issue/PR templates, profile+wiki repo names in header.go, config dir renamed) - Lowercase: mokogitea -> mokogit (docker image refs, ntfy topic, mail tags, wiki docs, Joomla element/targetplatform, MCP package docs) - Actions system user mokogitea-actions -> mokogit-actions + DB migration #369 to rename the existing id=-2 user in place - Icon: bundle Moko favicon.svg as public/assets/img/{favicon,logo}.svg; wire PWA manifest (SiteManifest) + nav logo to the SVG - CHANGELOG entry documenting the rebrand Shared MOKOGITEA_* CI/compose env + org-secret names are intentionally left for the coordinated server cutover to avoid breaking cross-repo CI. Claude-Session: https://claude.ai/code/session_01Bqe7fAuHQeiLueYfeHFrHw
25 lines
683 B
Go
25 lines
683 B
Go
// Copyright 2026 Moko Consulting <hello@mokoconsulting.tech>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
package setting
|
|
|
|
// Ntfy holds ntfy push notification settings.
|
|
var Ntfy = struct {
|
|
Enabled bool
|
|
ServerURL string
|
|
DefaultTopic string
|
|
Token string
|
|
}{
|
|
Enabled: false,
|
|
ServerURL: "https://ntfy.mokoconsulting.tech",
|
|
DefaultTopic: "mokogit",
|
|
}
|
|
|
|
func loadNtfyFrom(cfg ConfigProvider) {
|
|
sec := cfg.Section("ntfy")
|
|
Ntfy.Enabled = sec.Key("ENABLED").MustBool(false)
|
|
Ntfy.ServerURL = sec.Key("SERVER_URL").MustString(Ntfy.ServerURL)
|
|
Ntfy.DefaultTopic = sec.Key("DEFAULT_TOPIC").MustString(Ntfy.DefaultTopic)
|
|
Ntfy.Token = sec.Key("TOKEN").String()
|
|
}
|