fixed some some mongdb stuff, and added hide objects
This commit is contained in:
parent
8edd78a341
commit
a0e1593af9
6 changed files with 37 additions and 12 deletions
|
|
@ -1,12 +1,12 @@
|
|||
export * from './base.schema';
|
||||
export * from './database.schema';
|
||||
export * from './service.schema';
|
||||
export * from './provider.schema';
|
||||
export * from './service.schema';
|
||||
|
||||
import { z } from 'zod';
|
||||
import { baseConfigSchema, environmentSchema } from './base.schema';
|
||||
import { queueConfigSchema, httpConfigSchema } from './service.schema';
|
||||
import { providerConfigSchema, webshareProviderConfigSchema } from './provider.schema';
|
||||
import { httpConfigSchema, queueConfigSchema } from './service.schema';
|
||||
|
||||
// Flexible service schema with defaults
|
||||
const flexibleServiceConfigSchema = z.object({
|
||||
|
|
@ -74,6 +74,7 @@ const flexibleDatabaseConfigSchema = z.object({
|
|||
const flexibleLogConfigSchema = z.object({
|
||||
level: z.enum(['trace', 'debug', 'info', 'warn', 'error', 'fatal']).default('info'),
|
||||
format: z.enum(['json', 'pretty']).default('json'),
|
||||
hideObject: z.boolean().default(false),
|
||||
loki: z.object({
|
||||
enabled: z.boolean().default(false),
|
||||
host: z.string().default('localhost'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue