feat(admin): rebuild admin panel as out-of-band login with backups
- Separate admin login (ADMIN_USERNAME/ADMIN_PASSWORD) with its own JWT, no longer a seeded user account; lockout after 5 failed attempts - Admin panel tabs: Users, Notifications, Backups, Reset - Ntfy settings moved from .env/compose into admin_settings (token encrypted) - Scheduled and on-demand mariadb-dump backups to NFS volume, with restore (entries only or all) and retention pruning - Reset all entries, guarded by an automatic safety backup - Remove user impersonation and the admin link in the user nav - Login page falls back to admin login; nginx sends Cache-Control: no-cache Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c54d2b251f
commit
6272322f31
28 files changed
+1523
-461
No files matched your search
+12
-2
@@ -21,8 +21,10 @@ services:
|
||||
- ADMIN_USERNAME=${ADMIN_USERNAME}
|
||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-http://localhost}
|
||||
- NTFY_URL=${NTFY_URL:-}
|
||||
- NTFY_TOKEN=${NTFY_TOKEN:-}
|
||||
volumes:
|
||||
# Scheduled/manual backups (admin panel > Backups): the NFS-backed `backups`
|
||||
# volume below, so they live off-host. The share must be writable by uid 1000.
|
||||
- backups:/backups
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
@@ -56,3 +58,11 @@ services:
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
# Off-host backups on the project's NFS share. Override the server/export
|
||||
# with BACKUP_NFS_HOST / BACKUP_NFS_PATH in .env.
|
||||
backups:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr=${BACKUP_NFS_HOST:-172.16.21.51},nfsvers=4.1,rw,hard,timeo=600,retrans=2"
|
||||
device: ":${BACKUP_NFS_PATH:-/mnt/pool1/bourbonacci-backups}"
|
||||
Reference in new issue
Block a user