load appsettings.user.json as optional override

This commit is contained in:
Meleki committed 2026-02-21 12:11:48 +01:00
1 parent bc9944c5f2
commit 2e5e06db93
3 files changed
+4 -4

No files matched your search

+1
View File
@@ -2,6 +2,7 @@
/bin/
/obj/
/publish/
/appsettings.user.json
*.user
/jsonl-sync/node_modules/
+2
View File
@@ -3,6 +3,8 @@ using Microsoft.Data.Sqlite;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddJsonFile("appsettings.user.json", optional: true, reloadOnChange: true);
var dbPath = builder.Configuration["DbPath"]!;
builder.Services.AddSingleton<Func<SqliteConnection>>(() =>
+1 -4
View File
@@ -7,8 +7,5 @@
},
"AllowedHosts": "*",
"Urls": "http://0.0.0.0:18684",
"DbPath": "jsonl-sync/sessions.db",
"SyncWorkingDirectory": "/home/node/.openclaw/workspace/projects/token-analytics/jsonl-sync",
"SyncCommandFileName": "docker",
"SyncCommandArguments": "exec meleki node /home/node/.openclaw/workspace/projects/token-analytics/jsonl-sync/export.mjs"
"DbPath": "../jsonl-sync/sessions.db"
}