+18
−0
+14
−0
+5
−11
editor/src/editor_admin.cpp
0 → 100644
+160
−0
editor/src/editor_admin.h
0 → 100644
+32
−0
Loading
The blogi editor is a product of its own that shares the code with
blogi, so it gets its own policy "Blogi Editor: Server Administration",
its own authdb client blogi-editor-<host>, pages, texts and log names.
- editor/src/editorconfig.*: the WEBEDIT section; HTTP, DATABASE,
PREFIX, LANGUAGE and AUTHDB are managed, certificate, plugin, web
page and widget directories stay file-only, other keys (MEDIADB)
are kept.
- editor/src/editor_admin.*: config helper handlers, the /_server/
profile and the wizard product (listener, prefix, language, tested
database, authdb client and policy).
- main.cpp: the editor runs under the config helper (rollback,
maintenance mode, SIGHUP restart), binds before it reports ready;
without a config file the wizard starts on port 8090.
- /_server/ also behind the editor's PREFIX (relative API paths, cookie
path <prefix>/_server).
- run.sh starts the wizard instead of copying docker-config.yaml, which
had a BLOGI root the editor cannot start with.
Shared code generalised for this: helper::setConfigHandlers (with the
product name), serveradmin::Profile (page, prefix, policy, sources,
listener, name, user), setup::Product with checkAuthdbLogin and
createAuthdbClient(Policy), serverconfig::patchBlocks, writeChecked and
yamlQuote. blogi behaves as before. German texts added.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>