feat(settings): add browser setup and administration (#10)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { registerSettings } from "./settings";
|
||||
import Fastify, { type FastifyInstance } from "fastify";
|
||||
import websocket from "@fastify/websocket";
|
||||
import { loadConfig, type ServerConfig } from "./config";
|
||||
@@ -37,6 +38,7 @@ export async function buildApp(options: AppOptions = {}): Promise<FastifyInstanc
|
||||
const hub = options.events ?? new EventsHub();
|
||||
const app = Fastify({ logger: options.logger ?? false, trustProxy: options.trustProxy ?? false });
|
||||
if (options.auth !== false) await registerAuth(app, { dataDir: config.dataDir, ...options.auth });
|
||||
await registerSettings(app, config);
|
||||
await app.register(websocket);
|
||||
await app.register(workspacePlugin, { config });
|
||||
await app.register(runsPlugin, { config, hub });
|
||||
|
||||
Reference in New Issue
Block a user