Admin endpoint: ENV/file admin key, --reset-admin-key, settings API wired into ratelimit/max-bytes/default-expiry/burn-window (#40)
CI / test (push) Successful in 22s
CI / docker (push) Skipped

This commit is contained in:
2026-09-09 00:44:02 -05:00
parent 03600b2ed5
commit a3349b4a98
10 changed files with 562 additions and 11 deletions
+5 -1
View File
@@ -49,7 +49,11 @@ func TestMineCreateListDelete(t *testing.T) {
if err != nil {
t.Fatal(err)
}
a := &apiServer{store: store, cfg: Config{MaxTextBytes: 5 * 1024 * 1024}}
cfg := Config{MaxTextBytes: 5 * 1024 * 1024}
ss := newTestSettingsStore(t, cfg)
globalSettingsFn = ss.get
t.Cleanup(func() { globalSettingsFn = nil })
a := &apiServer{store: store, cfg: cfg, settings: ss, adminKey: "test-admin-key"}
h := a.routes()
alice := viewerCookieFor(t, h, "/history")