Merge pull request #3831 from wkloucek/proxy-config-revamp

proxy config revamp
This commit is contained in:
Willy Kloucek
2022-05-19 10:32:10 +02:00
committed by GitHub
5 changed files with 69 additions and 166 deletions
@@ -156,16 +156,6 @@ func DefaultPolicies() []config.Policy {
Endpoint: "/graph-explorer",
Backend: "http://localhost:9135",
},
// if we were using the go micro api gateway we could look up the endpoint in the registry dynamically
{
Endpoint: "/api/v0/accounts",
Backend: "http://localhost:9181",
},
// TODO the lookup needs a better mechanism
{
Endpoint: "/accounts.js",
Backend: "http://localhost:9181",
},
{
Endpoint: "/api/v0/settings",
Backend: "http://localhost:9190",