mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-12-23 17:44:24 +00:00
Add db config and move data dir config
This commit is contained in:
@@ -30,7 +30,6 @@ export interface ServerConfig {
|
||||
|
||||
export interface InstancesConfig {
|
||||
port_range: [number, number]
|
||||
data_dir: string
|
||||
configs_dir: string
|
||||
logs_dir: string
|
||||
auto_create_dirs: boolean
|
||||
@@ -45,6 +44,13 @@ export interface InstancesConfig {
|
||||
timeout_check_interval: number
|
||||
}
|
||||
|
||||
export interface DatabaseConfig {
|
||||
path: string
|
||||
max_open_connections: number
|
||||
max_idle_connections: number
|
||||
connection_max_lifetime: number
|
||||
}
|
||||
|
||||
export interface AuthConfig {
|
||||
require_inference_auth: boolean
|
||||
inference_keys: string[] // Will be empty in sanitized response
|
||||
@@ -61,9 +67,11 @@ export interface AppConfig {
|
||||
server: ServerConfig
|
||||
backends: BackendConfig
|
||||
instances: InstancesConfig
|
||||
database: DatabaseConfig
|
||||
auth: AuthConfig
|
||||
local_node: string
|
||||
nodes: Record<string, NodeConfig>
|
||||
data_dir: string
|
||||
version?: string
|
||||
commit_hash?: string
|
||||
build_time?: string
|
||||
|
||||
Reference in New Issue
Block a user