import { TracerConfig , defaultTracerConfig } from '@mw-components/jaeger' ; import { JwtConfig , JwtMiddlewareConfig , initialJwtMiddlewareConfig , } from '@mw-components/jwt' ; import { JwtAuthMiddlewareConfig } from './config.types' ; export const jwtConfig = { secret : '' , } ; export const jwtMiddlewareConfig = { ... initialJwtMiddlewareConfig , ignore : [ '/auth/login' , '/ping' , '/genid' , '/genidHex' , /\/swagger-u.*/u ] , } ; export const jwtAuth = { ignore : jwtMiddlewareConfig . ignore , redisScope : 'admin' , accessTokenExpiresIn : 60 * 60 * 24 * 3 , } ; export const tracer = { ... defaultTracerConfig , reqThrottleMsForPriority : 1000 , whiteList : [ '/favicon.ico' , '/favicon.png' , '/ping' , '/metrics' ] , tracingConfig : { sampler : { type : 'probabilistic' , param : 0.0001 , } , reporter : { agentHost : '127.0.0.1' , } , } , } ;