"Cannot GET / " Issue in using express gateway with nodejs express API or "Bad gateway" when not give localhost as host in apiEndpoints
http:
port: 9443
admin:
port: 9876
host: localhost
apiEndpoints:
api:
paths: '/api/filepath/FilePath'
serviceEndpoints:
httpbin:
url: 'https://webapps.klikpal.com:8091'
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