Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
November 12, 2018 06:14AM
On Mon, Nov 12, 2018 at 03:03:39AM +0000, Moorage via nginx wrote:

Hi there,

> 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/;
> ...
>
> it now works as hoped.

Good to hear; thanks for letting the list know, so that the next person
with the issue will be able to find the answer too.

From briefly looking at the Gentics Mesh documentation, it appears that
you might want to configure a few other parts of it to include the
"/mesh" prefix too, if you want to expose those parts through the nginx
reverse proxy.

/mesh-ui/ and /demo/ are things that may want to be changed -- but it
is also probably reasonable not to make those available externally.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

Francis Daly November 11, 2018 03:38PM

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

Francis Daly November 12, 2018 06:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready