Running Dashboard behind a Nginx proxy


#1

Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/LEBnwtpFIB4 Import Date: 2016-01-19 21:19:32 +0000.
Sender:Ming Fang.
Date:Wednesday, 5 August 2015 04:27:12 UTC+1.

I’m trying to run the Dashboard behind a Nginx proxy at the location /dashboard.
Is there any way to configure the Dashboard to listen on /dashboard instead of / (root)?


#2

Imported Google Group message.
Sender:Martin Buhr.
Date:Wednesday, 5 August 2015 06:21:52 UTC+1.

Hi,

I’m afraid not, it needs to run from root.

It’s something we can look into - with enough URL rewrites you may get it to work though.

Cheers,
Martin


#3

Imported Google Group message.
Sender:Ming Fang.
Date:Thursday, 6 August 2015 02:02:56 UTC+1.

I tried using Tyk Gateway to proxy to the Dashboard, like this

"proxy": {
    "listen_path": "/dashboard/",
    "target_url": "http://localhost:3000",
    "strip_listen_path": true
},

I was about to see the home page.
But since all the links are absolute, I’m unable to navigate to the rest of the dashboard.

Where can I find the source code for the dashboard?
Maybe this is something I can try to implement in the dashboard.

  • show quoted text -

#4

Imported Google Group message.
Sender:Martin Buhr.
Date:Thursday, 6 August 2015 08:45:12 UTC+1.

Hi Ming,
The dashboard is not open source I’m afraid, we’ll look into setting up a configuration like this, but it has wide reaching implications for all the related services in the dashboard: It’s management API, Portal services and asset delivery.
Sorry we can’t be more help, perhaps you can deploy the dashboard on a sub domain until we add support for this?
Many thanks,
Maritn


#5

Imported Google Group message.
Sender:Ming Fang.
Date:Thursday, 6 August 2015 18:15:42 UTC+1.

Thanks Martin. I’ll try using subdomain like you suggested.

  • show quoted text -