Unify Webserver config generation between TUI dev mode and pyinfra deploy
Open
- Dominant language
- Python
- Stars
- 670
- Forks
- 183
- Avg merge
- 15h 13m
- Merged PRs (30d)
- 368
Description
## Summary
Extract Webserver configuration generation (webserver.conf) into a shared module.
## Current Duplication
- `context.py:configure_webserver()` — sed + tomlkit modifications, FQDN protocol handling
- `deploy/cores/webserver/` — Jinja2 template
- Redis sentinel/single mode logic and endpoint protocol logic duplicated
## Complexity: MODERATE
Endpoint protocol handling (http/https for FQDN) and menu list configuration add moderate complexity.
## Approach
Create `src/ai/backend/install/config_gen/webserver.py` with config dict generation functions.
JIRA Issue: BA-5569
Contributor guide
Assessment
This issue has not been assessed yet.