233
This commit is contained in:
32
gateway/config/gateway.config.yml
Normal file
32
gateway/config/gateway.config.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
http:
|
||||
port: 8080
|
||||
admin:
|
||||
port: 9876
|
||||
host: localhost
|
||||
apiEndpoints:
|
||||
api:
|
||||
host: localhost
|
||||
paths: '/ip'
|
||||
serviceEndpoints:
|
||||
httpbin:
|
||||
url: 'https://httpbin.org'
|
||||
policies:
|
||||
- basic-auth
|
||||
- cors
|
||||
- expression
|
||||
- key-auth
|
||||
- log
|
||||
- oauth2
|
||||
- proxy
|
||||
- rate-limit
|
||||
pipelines:
|
||||
default:
|
||||
apiEndpoints:
|
||||
- api
|
||||
policies:
|
||||
# Uncomment `key-auth:` when instructed to in the Getting Started guide.
|
||||
# - key-auth:
|
||||
- proxy:
|
||||
- action:
|
||||
serviceEndpoint: httpbin
|
||||
changeOrigin: true
|
||||
Reference in New Issue
Block a user