feat(onebot): migrate musicSignUrl from per-UIN to global config
musicSignUrl is a deployment-wide signing-service endpoint (same for every account), so it belongs in the global config/snowluma.json next to rkey, not in per-UIN onebot_<uin>.json. - GlobalSettings gains musicSignUrl (http(s)-validated, '' = built-in default); consumption switches to globalSettings.musicSignUrl and hot-reloads via applyGlobalSettings. - One-shot copy-up at boot (migrateGlobalSettings, called first in main()): lifts the first VALID legacy value from any config/onebot*.json into the global store. Idempotent via a key-PRESENCE guard, so an intentional clear-to-'' is never reverted by a stale legacy value. - Remove musicSignUrl from per-UIN OneBotConfig (type + parse/serialize). Phase 2 of the global-settings split. (WebUI form follows in Phase 3.)
This commit is contained in:
8 files changed
+185
-23
No files matched your search
@@ -40,6 +40,10 @@
|
||||
"types": "./src/config.ts",
|
||||
"default": "./src/config.ts"
|
||||
},
|
||||
"./global-config": {
|
||||
"types": "./src/global-config.ts",
|
||||
"default": "./src/global-config.ts"
|
||||
},
|
||||
"./types": {
|
||||
"types": "./src/types.ts",
|
||||
"default": "./src/types.ts"
|
||||
|
||||
Reference in new issue
Block a user