Exposing external JSON API in an Nginx custom path?

Moorage moorage at protonmail.ch
Mon Nov 12 03:03:39 UTC 2018


> 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/;
		...

it now works as hoped.

Thanks for the hints!




More information about the nginx mailing list