[self-hosted] specify sql file location of auth, activity and main store (#5487)

This commit is contained in:
Misha Bragin
2026-03-03 12:53:16 +02:00
committed by GitHub
parent 47133031e5
commit 403babd433
6 changed files with 50 additions and 8 deletions

View File

@@ -42,6 +42,9 @@ func withTokenStore(cmd *cobra.Command, fn func(ctx context.Context, s store.Sto
os.Setenv("NB_STORE_ENGINE_MYSQL_DSN", dsn)
}
}
if file := cfg.Server.Store.File; file != "" {
os.Setenv("NB_STORE_ENGINE_SQLITE_FILE", file)
}
datadir := cfg.Management.DataDir
engine := types.Engine(cfg.Management.Store.Engine)