fixed some some mongdb stuff, and added hide objects

This commit is contained in:
Boki 2025-06-21 07:33:47 -04:00
parent 8edd78a341
commit a0e1593af9
6 changed files with 37 additions and 12 deletions

View file

@ -174,6 +174,7 @@ export class EnvLoader implements ConfigLoader {
// Log mappings (using LOG_ prefix for all)
LOG_LEVEL: ['log', 'level'],
LOG_FORMAT: ['log', 'format'],
LOG_HIDE_OBJECT: ['log', 'hideObject'],
LOG_LOKI_ENABLED: ['log', 'loki', 'enabled'],
LOG_LOKI_HOST: ['log', 'loki', 'host'],
LOG_LOKI_PORT: ['log', 'loki', 'port'],

View file

@ -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'),