Re: Exposing external JSON API in an Nginx custom path?

2018-11-11 Thread Moorage via nginx
> Some more 'stuff' to try! > > Let's see how it works ... The secret-sauce recipe was: in the mesh-ui config apiUrl: '/mesh/api/v1/', and in nginx location ^~ /mesh/ { ... proxy_pass http://meshproxy/; proxy_redirect / /mesh/;

Re: Exposing external JSON API in an Nginx custom path?

2018-11-11 Thread Moorage via nginx
Hi, > So you want the request to nginx of "/mesh/" to become a request to your > upstream server of "/"? Initially, that was the idea. For no reason OTHER than out of the box, the upstream UI *is*, by default, available at http://mesh.example.com:8080/ > It can be done; however, I suggest t

Exposing external JSON API in an Nginx custom path?

2018-11-11 Thread Moorage via nginx
I have a vhost running on nginx/1.15.6, https://example.com I have a standalone API service (fwiw, Gentics Mesh) running at http://mesh.example.com It exposes its UI, per its own config as apiUrl: '/api/v1/', Browsing to the direct link, Mesh responds as expected, corr