Nomad nginx_proxy_pass

Nomad runs on localhost:4646. I want to proxy_pass with Nginx.

I have something like this

location /nomad { 
proxy_pass http://localhost:4646/;

When I goto http://server/nomad I keep getting redirected to http://server/ui

Is there a way to get around this?

Is anyone running nomad with nginx’s proxy_pass? Can you show me your config?

Hi @keith6014, Nomad automatically 307 redirects queries for / to /ui, and the content of that response depends on whether Nomad was built with the UI embedded. What’s the intended behavior you’re looking for?