d4rkbot: API v1 mit Key-System, Env-Diät, Rebranding
- API-Keys (SHA-256-Hash, Scopes, last_used) — Verwaltung auf der Setup-Seite, Klartext-Key wird genau einmal angezeigt - /api/v1: message, dm, roles (add/remove), member/:id, stats — Bearer-Auth mit Scope-Prüfung, Embed-Sanitizing, README-Doku mit Python-Beispiel - Env-Diät: PUBLIC_URL + GITEA_URL jetzt Settings (Env nur Fallback), OAuth-Redirect dynamisch; Env enthält nur noch Secrets/Bootstrap - Rebranding ecobot → d4rkbot (Packages, Container, Cookies, README); Volume-Name bleibt ecobot_data (Datenerhalt), Portainer-Stack-Name bleibt Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,16 @@ export function devlogChannelId() {
|
||||
return getSetting('devlog_channel_id') || config.devlogChannelId;
|
||||
}
|
||||
|
||||
/** Öffentliche Basis-URL (Buttons, RSS, OAuth-Redirect) */
|
||||
export function publicUrl() {
|
||||
return (getSetting('public_url') || config.publicUrl).replace(/\/$/, '');
|
||||
}
|
||||
|
||||
/** Gitea-Basis-URL (API für /bug) */
|
||||
export function giteaUrl() {
|
||||
return (getSetting('gitea_url') || config.giteaUrl).replace(/\/$/, '');
|
||||
}
|
||||
|
||||
/** Release-Ankündigungs-Kanal — nur per Settings-Seite, leer = Feature aus */
|
||||
export function releaseChannelId() {
|
||||
return getSetting('release_channel_id') || null;
|
||||
|
||||
Reference in New Issue
Block a user