config.values.yml Maven / Gradle / Ivy
service.singletons:
- com.networknt.balance.LoadBalance:
- com.networknt.balance.RoundRobinLoadBalance
- com.networknt.cluster.Cluster:
- com.networknt.cluster.LightCluster
- com.networknt.handler.ResponseInterceptor:
- com.networknt.body.ResponseBodyInterceptor
- com.networknt.handler.RequestInterceptor:
- com.networknt.body.RequestBodyInterceptor
- com.networknt.cache.CacheManager:
- com.networknt.cache.CaffeineCacheManager
# server.yml
server.serviceId: com.networknt.petstore-1.0.0
server.environment: dev-proxy
# proxy.yml
proxy.hosts: http://localhost:9080
# handler.yml
handler.enabled: true
handler.basePath: /
handler.handlers:
# Light-framework cross-cutting concerns implemented in the microservice
- com.networknt.exception.ExceptionHandler@exception
- com.networknt.metrics.MetricsHandler@metrics
- com.networknt.traceability.TraceabilityHandler@traceability
- com.networknt.correlation.CorrelationHandler@correlation
# Cors handler to handler post/put pre-flight. It is not used in the sidecar but only in the router.
# - com.networknt.cors.CorsHttpHandler@cors
- com.networknt.openapi.OpenApiHandler@specification
- com.networknt.openapi.JwtVerifyHandler@security
- com.networknt.body.BodyHandler@body
- com.networknt.audit.AuditHandler@audit
# DumpHandler is to dump detail request/response info to log, useful for troubleshooting but not suggested to use in production due to it may lower the performance
# - com.networknt.dump.DumpHandler@dump
- com.networknt.sanitizer.SanitizerHandler@sanitizer
- com.networknt.openapi.ValidatorHandler@validator
# Header middleware to manipulate request and/or response headers before or after downstream server
- com.networknt.header.HeaderHandler@header
# Rate limit middleware to prevent DDoS attacks externally or throttle requests internally
- com.networknt.limit.LimitHandler@limit
# Direct requests to named services based on the request path
# - com.networknt.router.middleware.PathPrefixServiceHandler@path
- com.networknt.router.middleware.SidecarTokenHandler@token
- com.networknt.router.SidecarRouterHandler@router
- com.networknt.proxy.LightProxyHandler@proxy
# Customer business domain specific cross-cutting concerns handlers
# - com.example.validator.CustomizedValidator@custvalidator
# Framework endpoint handlers
# Control Pane middleware handlers and API handler
- com.networknt.chaos.KillappAssaultHandler@killapp
- com.networknt.chaos.LatencyAssaultHandler@latency
- com.networknt.chaos.MemoryAssaultHandler@memory
- com.networknt.chaos.ExceptionAssaultHandler@exchaos
- com.networknt.chaos.ChaosMonkeyGetHandler@chaosget
- com.networknt.chaos.ChaosMonkeyPostHandler@chaospost
- com.networknt.proxy.ProxyHealthGetHandler@proxyHealth
- com.networknt.health.HealthGetHandler@health
- com.networknt.proxy.ProxyServerInfoHandler@info
- com.networknt.logging.handler.LoggerGetHandler@getLogger
- com.networknt.logging.handler.LoggerPostHandler@postLogger
- com.networknt.logging.handler.LoggerGetLogContentsHandler@getLogContents
- com.networknt.config.reload.handler.ModuleRegistryGetHandler@modules
- com.networknt.config.reload.handler.ConfigReloadHandler@configReload
- com.networknt.specification.SpecDisplayHandler@spec
- com.networknt.specification.SpecSwaggerUIHandler@swaggerui
- com.networknt.specification.FaviconHandler@favicon
- com.networknt.handler.ResponseInterceptorInjectionHandler@responseInterceptor
- com.networknt.handler.RequestInterceptorInjectionHandler@requestInterceptor
- com.networknt.server.handler.ServerShutdownHandler@shutdown
handler.chains.default:
- exception
- metrics
- limit
- traceability
- correlation
- requestInterceptor
- responseInterceptor
- killapp
- latency
- memory
- exchaos
- audit
# - cors
- header
# - path
# Outgoing traffic does not need to use security and validator. Just get the token and call the router.
- token
- router
- specification
- security
- sanitizer
# - dump
- validator
- proxy
# openapi-security.yml
openapi-security.keyResolver: X509Certificate
# cache.yml
cache.caches:
- cacheName: jwt
expiryInMinutes: 15
maxSize: 100
- cacheName: jwk
expiryInMinutes: 129600
maxSize: 100
© 2015 - 2024 Weber Informatics LLC | Privacy Policy