From 55796bada24a051adfc7b97765de1599966f4544 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Sun, 22 Nov 2026 11:30:08 +0100 Subject: [PATCH] bump coredns-web-ui to 1.1.0, support a separate web UI database --- README.md | 2 +- docker-compose.yml | 1 + env.example | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 206f380..ccc5ff6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # coredns-web-ui Deployment Web UI for the zones and records CoreDNS serves through the `mysql` plugin: [source/coredns-web-ui](https://git.bjphoster.com/source/coredns-web-ui). -It reads and writes the plugin's records table directly and keeps its own tables (users, sessions, delegations, audit) in the same database with the `webui_` prefix, created by its migrations at startup. It never talks to CoreDNS. It keeps no local state and needs no volume. `/health` is an unauthenticated liveness check; HSTS is left to Træfik. +It reads and writes the plugin's records table directly and keeps its own tables (users, sessions, delegations, audit) in `CWUI_DB_WEBUI_NAME` (default `CWUI_DB_NAME`) with the `webui_` prefix, created by its migrations at startup. It never talks to CoreDNS. It keeps no local state and needs no volume. `/health` is an unauthenticated liveness check; HSTS is left to Træfik. ## Requirements - MySQL or MariaDB with a `utf8mb4` database holding the plugin's `records` table. The application never creates or alters it. diff --git a/docker-compose.yml b/docker-compose.yml index f4eae6d..acb252e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: - DB_USER=${CWUI_DB_USER} - DB_PASSWORD=${CWUI_DB_PASSWORD} - DB_NAME=${CWUI_DB_NAME} + - DB_WEBUI_NAME=${CWUI_DB_WEBUI_NAME:-${CWUI_DB_NAME}} - DB_TLS=${CWUI_DB_TLS} - DB_TABLE_PREFIX=${CWUI_DB_TABLE_PREFIX} - HTTP_ADDR=0.0.0.0 diff --git a/env.example b/env.example index 0d7d848..b3bf04b 100644 --- a/env.example +++ b/env.example @@ -10,12 +10,14 @@ TRAEFIK_CERTRESOLVER=letsencrypt TRAEFIK_MIDDLEWARES=hsts # coredns-web-ui -CWUI_VERSION=0.0.1-alpha3 +CWUI_VERSION=1.1.0 CWUI_DB_HOST=mysql.example.com CWUI_DB_PORT=3306 CWUI_DB_USER=coredns_webui CWUI_DB_PASSWORD=changeme CWUI_DB_NAME=coredns +# Database for the web UI tables, defaults to CWUI_DB_NAME +CWUI_DB_WEBUI_NAME=coredns_webui CWUI_DB_TLS=false CWUI_DB_TABLE_PREFIX=coredns_ CWUI_LOG_LEVEL=INFO