Persist Directory data (Resource/site/host/service/oauth) + bump sso-manager-node to v1.8.0 (#108)
sso-manager's Directory data had no persistent volume at all: @simpleworkjs/orm falls back to './config/inventory.sqlite' (relative to /app) when conf.orm isn't set, which lives in the container's ephemeral layer -- every container recreate silently wiped every site/host/service/oauth-client resource and their relationships. setup.sh's generated sso-secrets.js now sets orm.storage=/data/inventory.sqlite, co-located with the already-persisted sso-data volume (same one Redis uses). Verified live: migrated the running stack's existing Directory data to /data, force-recreated the container, and confirmed all 8 resources survived. Also bumps sso-manager-node to v1.8.0 (resource modal standardization: tabs, footer with created/updated-by metadata, linkable /directory/:slug URLs, a new Children tab, and site-slug-prefixed auto-created LDAP groups).
This commit is contained in:
@@ -30,6 +30,16 @@ module.exports = {
|
||||
jwtSecret: 'CHANGE-ME', // signs all tokens — keep secret
|
||||
token_lifetime: { access_token: 3600, refresh_token: 2592000 },
|
||||
},
|
||||
// Without this, @simpleworkjs/orm falls back to './config/inventory.sqlite'
|
||||
// (relative to the app's /app cwd) -- inside the container's ephemeral
|
||||
// layer, not any mounted volume, so every Resource/site/host/service/oauth
|
||||
// row (the whole Directory Management page) would be silently wiped on
|
||||
// every container recreate. /data is already a persisted volume (Redis
|
||||
// lives there too), so this just co-locates the sqlite file with it.
|
||||
orm: {
|
||||
dialect: 'sqlite',
|
||||
storage: '/data/inventory.sqlite',
|
||||
},
|
||||
|
||||
// ── Orchestrator-only (ignored by the app; read by setup.sh + bootstrap) ──
|
||||
stack: {
|
||||
|
||||
Reference in New Issue
Block a user