added disabled functioality
This commit is contained in:
parent
fabf42dc7f
commit
d8ae0cb3c5
16 changed files with 147 additions and 75 deletions
|
|
@ -2,6 +2,7 @@ import { z } from 'zod';
|
|||
|
||||
// PostgreSQL configuration
|
||||
export const postgresConfigSchema = z.object({
|
||||
enabled: z.boolean().default(true),
|
||||
host: z.string().default('localhost'),
|
||||
port: z.number().default(5432),
|
||||
database: z.string(),
|
||||
|
|
@ -15,6 +16,7 @@ export const postgresConfigSchema = z.object({
|
|||
|
||||
// QuestDB configuration
|
||||
export const questdbConfigSchema = z.object({
|
||||
enabled: z.boolean().default(true),
|
||||
host: z.string().default('localhost'),
|
||||
ilpPort: z.number().default(9009),
|
||||
httpPort: z.number().default(9000),
|
||||
|
|
@ -28,6 +30,7 @@ export const questdbConfigSchema = z.object({
|
|||
|
||||
// MongoDB configuration
|
||||
export const mongodbConfigSchema = z.object({
|
||||
enabled: z.boolean().default(true),
|
||||
uri: z.string().url().optional(),
|
||||
host: z.string().default('localhost'),
|
||||
port: z.number().default(27017),
|
||||
|
|
@ -41,6 +44,7 @@ export const mongodbConfigSchema = z.object({
|
|||
|
||||
// Dragonfly/Redis configuration
|
||||
export const dragonflyConfigSchema = z.object({
|
||||
enabled: z.boolean().default(true),
|
||||
host: z.string().default('localhost'),
|
||||
port: z.number().default(6379),
|
||||
password: z.string().optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue