config: bind to localhost by default

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I00aca92a09291ce12f09da68917f56c06a6a6964
This commit is contained in:
raf 2026-02-01 17:16:58 +03:00
commit 7d8bc6943d
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 50 additions and 5 deletions

View file

@ -1,5 +1,6 @@
export interface Config {
server: ServerConfig;
dashboard?: DashboardConfig;
repositories: RepoConfig[];
filters: FiltersConfig;
engine: EngineConfig;
@ -16,9 +17,22 @@ export interface PollingConfig {
export interface ServerConfig {
port: number;
host?: string;
rateLimit?: number;
}
export interface DashboardConfig {
enabled: boolean;
auth?: DashboardAuthConfig;
}
export interface DashboardAuthConfig {
type: 'basic' | 'token';
username?: string;
password?: string;
token?: string;
}
export interface RepoConfig {
owner: string;
repo: string;