Backup configs can be restored in the UI. User can choose between Merge or Overwrite, the UI displays a comparison. Configs are compared when user opens the restore modal, configs which won't cause changes are marked.

This commit is contained in:
Roland 2026-03-09 16:11:44 -06:00 • committed by lrnselfreliance
parent 1cf402821c
commit da6e62ee45
15 changed files with 1870 additions and 17 deletions

View file

@ -1893,7 +1893,10 @@
}
const checkUpgradeComplete = async () => {
try {
const resp = await fetch('/api/ready', {
// WARNING: This must be a relative URL (no leading slash) so it resolves to
// /controller/api/ready behind Caddy, or /api/ready when accessed directly.
// An absolute '/api/ready' would be routed to Sanic by Caddy, not the Controller.
const resp = await fetch('api/ready', {
method: 'GET',
headers: {'Accept': 'application/json'},
signal: AbortSignal.timeout(5000)
@ -1936,7 +1939,10 @@
// Poll controller's readiness endpoint (same-origin, avoids CORS/cert issues).
const checkMainApp = async () => {
try {
const resp = await fetch('/api/ready', {
// WARNING: This must be a relative URL (no leading slash) so it resolves to
// /controller/api/ready behind Caddy, or /api/ready when accessed directly.
// An absolute '/api/ready' would be routed to Sanic by Caddy, not the Controller.
const resp = await fetch('api/ready', {
method: 'GET',
headers: {'Accept': 'application/json'},
signal: AbortSignal.timeout(5000)