move e621 auth to .env, edit readme

This commit is contained in:
creations 2025-01-05 21:46:01 -05:00
parent 60a11c8d92
commit 20f98f630f
Signed by: creations
GPG key ID: 8F553AA4320FC711
5 changed files with 67 additions and 14 deletions

View file

@ -1,6 +1,6 @@
// cSpell:disable
import { e621Auth } from "./secrets";
import { getE621Auth } from "./environment";
const booruDefaults: IBooruDefaults = {
search: "index.php?page=dapi&s=post&q=index&json=1",
@ -68,8 +68,6 @@ export const booruConfig: IBooruConfigMap = {
random: "defaultRandom",
id: ["posts/", ".json"],
},
auth: {
...e621Auth,
},
auth: getE621Auth(),
},
};