config: bind to localhost by default
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I00aca92a09291ce12f09da68917f56c06a6a6964
This commit is contained in:
parent
2db5fa502f
commit
7d8bc6943d
3 changed files with 50 additions and 5 deletions
14
src/types.ts
14
src/types.ts
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue