mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
refactor(config): ♻️ Redo config structure from scratch, simplify validation code, improve checks, add support for loading sensitive data from paths
This commit is contained in:
parent
d4afd84019
commit
54fd81f076
118 changed files with 3892 additions and 5291 deletions
|
|
@ -8,7 +8,8 @@ import { fetchQueue } from "~/classes/queues/fetch";
|
|||
import { inboxQueue } from "~/classes/queues/inbox";
|
||||
import { mediaQueue } from "~/classes/queues/media";
|
||||
import { pushQueue } from "~/classes/queues/push";
|
||||
import { config } from "~/packages/config-manager";
|
||||
import { config } from "~/config.ts";
|
||||
import pkg from "~/package.json";
|
||||
import type { HonoEnv } from "~/types/api";
|
||||
|
||||
export const applyToHono = (app: OpenAPIHono<HonoEnv>): void => {
|
||||
|
|
@ -31,9 +32,7 @@ export const applyToHono = (app: OpenAPIHono<HonoEnv>): void => {
|
|||
alternative: "/favicon.ico",
|
||||
},
|
||||
boardLogo: {
|
||||
path:
|
||||
config.instance.logo?.toString() ??
|
||||
"https://cdn.versia.pub/branding/icon.svg",
|
||||
path: config.instance.branding.logo?.origin ?? pkg.icon,
|
||||
height: 40,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue