chore: update configuration example
This commit is contained in:
16
README.md
16
README.md
@@ -126,12 +126,11 @@ gateway:
|
|||||||
disableDisplayRouteOnStart: false
|
disableDisplayRouteOnStart: false
|
||||||
# Proxy Global HTTP Cors
|
# Proxy Global HTTP Cors
|
||||||
cors:
|
cors:
|
||||||
# Cors origins are global for all routes
|
# Global routes cors for all routes
|
||||||
origins:
|
origins:
|
||||||
- https://example.com
|
- https://example.com
|
||||||
- https://dev.example.com
|
- https://auth.example.com
|
||||||
- http://localhost:80
|
# Global routes cors headers for all routes
|
||||||
# Allowed headers are global for all routes
|
|
||||||
headers:
|
headers:
|
||||||
Access-Control-Allow-Headers: 'Origin, Authorization, Accept, Content-Type, Access-Control-Allow-Headers, X-Client-Id, X-Session-Id'
|
Access-Control-Allow-Headers: 'Origin, Authorization, Accept, Content-Type, Access-Control-Allow-Headers, X-Client-Id, X-Session-Id'
|
||||||
Access-Control-Allow-Credentials: 'true'
|
Access-Control-Allow-Credentials: 'true'
|
||||||
@@ -141,7 +140,7 @@ gateway:
|
|||||||
# Example of a route | 1
|
# Example of a route | 1
|
||||||
- name: Store
|
- name: Store
|
||||||
# host Domain/host based request routing
|
# host Domain/host based request routing
|
||||||
host: localhost
|
host: dev.example.com
|
||||||
path: /store
|
path: /store
|
||||||
## Rewrite a request path
|
## Rewrite a request path
|
||||||
# e.g rewrite: /store to /
|
# e.g rewrite: /store to /
|
||||||
@@ -153,8 +152,13 @@ gateway:
|
|||||||
disableHeaderXForward: false
|
disableHeaderXForward: false
|
||||||
# Internal health check
|
# Internal health check
|
||||||
healthCheck: /internal/health/ready
|
healthCheck: /internal/health/ready
|
||||||
# Proxy route HTTP Cors
|
# Route Cors, global cors will be overridden by route
|
||||||
cors:
|
cors:
|
||||||
|
# Route Origins Cors, global cors will be overridden by route
|
||||||
|
origins:
|
||||||
|
- https://dev.example.com
|
||||||
|
- http://localhost:3000
|
||||||
|
# Route Cors headers, global cors will be overridden by route
|
||||||
headers:
|
headers:
|
||||||
Access-Control-Allow-Methods: 'GET'
|
Access-Control-Allow-Methods: 'GET'
|
||||||
Access-Control-Allow-Headers: 'Origin, Authorization, Accept, Content-Type, Access-Control-Allow-Headers, X-Client-Id, X-Session-Id'
|
Access-Control-Allow-Headers: 'Origin, Authorization, Accept, Content-Type, Access-Control-Allow-Headers, X-Client-Id, X-Session-Id'
|
||||||
|
|||||||
16
goma.yml
16
goma.yml
@@ -20,12 +20,11 @@ gateway:
|
|||||||
disableDisplayRouteOnStart: false
|
disableDisplayRouteOnStart: false
|
||||||
# Proxy Global HTTP Cors
|
# Proxy Global HTTP Cors
|
||||||
cors:
|
cors:
|
||||||
# Cors origins are global for all routes
|
# Global routes cors for all routes
|
||||||
origins:
|
origins:
|
||||||
- https://example.com
|
- https://example.com
|
||||||
- https://dev.example.com
|
- https://auth.example.com
|
||||||
- http://localhost:80
|
# Global routes cors headers for all routes
|
||||||
# Allowed headers are global for all routes
|
|
||||||
headers:
|
headers:
|
||||||
Access-Control-Allow-Headers: 'Origin, Authorization, Accept, Content-Type, Access-Control-Allow-Headers, X-Client-Id, X-Session-Id'
|
Access-Control-Allow-Headers: 'Origin, Authorization, Accept, Content-Type, Access-Control-Allow-Headers, X-Client-Id, X-Session-Id'
|
||||||
Access-Control-Allow-Credentials: 'true'
|
Access-Control-Allow-Credentials: 'true'
|
||||||
@@ -35,7 +34,7 @@ gateway:
|
|||||||
# Example of a route | 1
|
# Example of a route | 1
|
||||||
- name: Store
|
- name: Store
|
||||||
# host Domain/host based request routing
|
# host Domain/host based request routing
|
||||||
host: localhost
|
host: dev.example.com
|
||||||
path: /store
|
path: /store
|
||||||
## Rewrite a request path
|
## Rewrite a request path
|
||||||
# e.g rewrite: /store to /
|
# e.g rewrite: /store to /
|
||||||
@@ -47,8 +46,13 @@ gateway:
|
|||||||
disableHeaderXForward: false
|
disableHeaderXForward: false
|
||||||
# Internal health check
|
# Internal health check
|
||||||
healthCheck: /internal/health/ready
|
healthCheck: /internal/health/ready
|
||||||
# Proxy route HTTP Cors
|
# Route Cors, global cors will be overridden by route
|
||||||
cors:
|
cors:
|
||||||
|
# Route Origins Cors, global cors will be overridden by route
|
||||||
|
origins:
|
||||||
|
- https://dev.example.com
|
||||||
|
- http://localhost:3000
|
||||||
|
# Route Cors headers, global cors will be overridden by route
|
||||||
headers:
|
headers:
|
||||||
Access-Control-Allow-Methods: 'GET'
|
Access-Control-Allow-Methods: 'GET'
|
||||||
Access-Control-Allow-Headers: 'Origin, Authorization, Accept, Content-Type, Access-Control-Allow-Headers, X-Client-Id, X-Session-Id'
|
Access-Control-Allow-Headers: 'Origin, Authorization, Accept, Content-Type, Access-Control-Allow-Headers, X-Client-Id, X-Session-Id'
|
||||||
|
|||||||
Reference in New Issue
Block a user