UNPKG

549 BYAMLView Raw
1http:
2 port: ${EG_HTTP_PORT:-8080}
3# https:
4# port: 9999
5# tls: {}
6admin: # remove this section to disable admin API
7 port: 9876
8 host: localhost # use 0.0.0.0 to listen on all IPv4 interfaces
9apiEndpoints:
10 api:
11 host: '*'
12serviceEndpoints:
13 backend:
14 url: 'http://localhost:9876' # btw this is EG admin API
15policies:
16 - proxy
17 - key-auth
18pipelines:
19 adminAPI:
20 apiEndpoints:
21 - api
22 policies:
23 # - key-auth: # uncomment to enable key-auth
24 - proxy:
25 action:
26 serviceEndpoint: backend