load appsettings.user.json as optional override
This commit is contained in:
1 parent
bc9944c5f2
commit
2e5e06db93
3 files changed
+4
-4
No files matched your search
@@ -2,6 +2,7 @@
|
||||
/bin/
|
||||
/obj/
|
||||
/publish/
|
||||
/appsettings.user.json
|
||||
*.user
|
||||
|
||||
/jsonl-sync/node_modules/
|
||||
|
||||
@@ -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
@@ -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"
|
||||
}
|
||||
Reference in new issue
Block a user