nomad-ui behind nginx reverse proxy

573 views
Skip to first unread message

detlef.l...@gmail.com

unread,
Nov 29, 2016, 10:07:45 AM11/29/16
to Nomad
Hi folks,

I spent some time trying to hide nomad-ui behind an nginx reverse proxy. My previous clumsy attempts using the following section did not work out so well.

location /monitor/nomad-ui {
proxy_pass http://nomad-ui;
rewrite ^/monitor/nomad-ui/(.*) /$1 break;
proxy_set_header Host $http_host;
}


While the initial page is loading, all resources are being referenced from '/'. Looking at the source code, I found no way to configure some kind of a base url. Unfortunately in my case, using another port is not an option.
Has anybody figured out, if/how this can be done?

Cheers,
Detlef

Jonathan Ballet

unread,
Nov 29, 2016, 11:44:05 AM11/29/16
to detlef.l...@gmail.com, Nomad

Hi Detlef,

this has been requested before, see https://github.com/iverberk/nomad-ui/issues/15 but apparently not easy to do so with the current codebase.

 Jonathan

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/nomad/issues
IRC: #nomad-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Nomad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nomad-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nomad-tool/9961ad6e-81a8-43ec-8604-18baae39ac44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Message has been deleted

detlef.l...@gmail.com

unread,
Nov 30, 2016, 4:39:01 AM11/30/16
to Nomad
Hi Jonathan,

Too bad... well, thanks for the quick answer.

Cheers,
Detlef.

Christian Winther

unread,
Jan 14, 2017, 2:44:51 PM1/14/17
to Nomad
The successor to nomad-ui, hashi-ui, do support this :) Please see https://github.com/jippi/hashi-ui 
Reply all
Reply to author
Forward
0 new messages