docs: update config

This commit is contained in:
2024-11-02 12:12:22 +01:00
committed by GitHub
parent 55eceea416
commit a17f4193ac
3 changed files with 21 additions and 19 deletions

View File

@@ -45,7 +45,7 @@ gateway:
path: /public
## Rewrite a request path
# e.g rewrite: /store to /
rewrite: /healthz
rewrite: /
destination: https://example.com
#DisableHeaderXForward Disable X-forwarded header.
# [X-Forwarded-Host, X-Forwarded-For, Host, Scheme ]
@@ -76,8 +76,8 @@ gateway:
- name: Authentication service
path: /auth
rewrite: /
destination: 'http://security-service:8080'
healthCheck: /internal/health/ready
destination: https://example.com
healthCheck: /
cors: {}
middlewares:
- api-forbidden-paths
@@ -129,17 +129,17 @@ middlewares:
#
# Add header to the next request from AuthRequest header, depending on your requirements
# Key is AuthRequest's response header Key, and value is Request's header Key
# In case you want to get headers from the Authentication service and inject them into the next request's headers
# In case you want to get headers from the authentication service and inject them into the next request headers.
headers:
userId: X-Auth-UserId
userCountryId: X-Auth-UserCountryId
# In case you want to get headers from the Authentication service and inject them to the next request's params
# In case you want to get headers from the Authentication service and inject them to the next request params.
params:
userCountryId: countryId
# The server will return 404
# The server will return 403
- name: api-forbidden-paths
type: access
## Forbidden paths
## prevents access paths
paths:
- /swagger-ui/*
- /v2/swagger-ui/*