Haufe-Lexware / wicked.haufe.io

An API Management system based on Mashape Kong
http://wicked.haufe.io
Other
123 stars 37 forks source link

Kong Admin and Proxy host should be configurable as different #122

Closed DonMartin76 closed 5 years ago

DonMartin76 commented 5 years ago

There should be a distinction between the URL for the Kong Admin URL and the Kong Proxy URL; in certain types of deployments, especially when Kong is not run as a Docker/Kubernetes deployment, it is necessary to be able to use different hosts.

The wicked SDK deduced the Proxy port (http://<kong service>:8000) from the Kong Admin port, but this can be misleading.

DonMartin76 commented 5 years ago

As of 1.0.0.beta9, globals.json can contain an additional property in the networks section: kongProxyUrl. Kickstarter supports it, and the wicked Node SDK treats it correctly and falls back to the previous behavior if it's not defined.