Changing Tyk's Base URL

Hi,

Is there a way to change the base url of tyk. For example, instead of accessing the dashboard at http://localhost:3000 I want to access it at http://localhost/tyk:3000.

Thanks

Yes you can add an entry in your hosts file redirecting to localhost from any name you want.

i.e.
if you add
127.0.0.1 dash.abc
to hosts file the you can access dash on dash.abc:3000

HI,

It’s really more about reverse proxy. I wan’t Tyk to sit behind Nginx with the following configuration:

location /tyk/ {
proxy_pass localhost:3000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
}

After installation the dashboard loads fine. But when I clicked ‘Activate’ license the system fails because it uses the base url / so it is sending localhost:3000/license instead of localhost:3000/tyk/license.