It’s running all fine, but I need something as this specific:
I need to run
API-Gateway at domain. net (root domain), port 80
API-dashboard at developer.domain. net, port 80 (so that my developers will no need to put :3000 to access my page)
======
As I can see the source code of the gist file above, it’s using the same docker command as your docker page, but I’m wondering if I can set the port to port 80, and set the API-gateway domain as well as dashboard port and domain name?
======
I’m running Tyk On-premise on OVH server, Centos7. All Mongodb, Redis, Tyk-gateway, tyk-dashboard, docker is in the latest version.
Put nginx on top of your infrastructure which will handle domain routing.
Proxy everything though Gateway, including dashboard. So Dashboard will be basically a “new” API where upstream URL is your dashboard url with port 3000, and custom domain field is developer.domain.net
Since Tyk is also a reverse proxy, it can work. Note that you should have “enable_custom_domains” set to true in tyk.conf.
Also note that Dashboard consist of 2 parts, Developer portal and Admin dashboard. And you can bind them to separate domains. To bind Portal to separate domain, you can use top menu “Set your portal domain” action, or using Dashboard Organizations API and setting CNAME field to your org.
As I can see, both dashboard and portal is running at port 3000, if I set the portal path is “/” instead of “/portal”, it will be the conflict with the dashboard somehow?