forked from Nixius/authelia
1
0
Fork 0

Fix Destroy being immediately undone by dashboard auto-redeploy

Dashboard was auto-deploying any missing stack on every page load.
This stomped on the Destroy action. Stack creation only happens at
activation and via explicit Start — not on dashboard render.

Made-with: Cursor
This commit is contained in:
Leopere 2026-03-03 16:52:31 -05:00
parent e71831cf9d
commit 6356cbb1da
Signed by: colin
SSH Key Fingerprint: SHA256:nRPCQTeMFLdGytxRQmPVK9VXY3/ePKQ5lGRyJhT5DY8
2 changed files with 0 additions and 11 deletions

View File

@ -38,14 +38,6 @@ func (a *App) handleDashboard(w http.ResponseWriter, r *http.Request) {
if err != nil {
log.Printf("dashboard: stack check failed for %s: %v", remoteUser, err)
}
if !exists {
log.Printf("dashboard: deploying missing stack %s", stackName)
if err := a.swarm.DeployStack(stackName, remoteUser, a.cfg.TraefikDomain); err != nil {
log.Printf("dashboard: stack deploy failed for %s: %v", remoteUser, err)
} else {
exists = true
}
}
stackDeployed = exists
if exists {
replicas, _ := a.swarm.GetWebReplicas(stackName)

View File

@ -19,9 +19,6 @@
# Each customer gets their stack at: https://{{.Subdomain}}.{{.Domain}}
# Access is restricted to the owning user via Authelia forward-auth.
# =============================================================================
version: "3.8"
services:
web:
image: louislam/uptime-kuma:1