Configuring Base Path for Frontend with NGINX

TLDR Romario asked how to configure base_path for the frontend with NGINX. Prashant suggested using subdomains as custom base URLs are not supported. Romario successfully implemented the solution.

Photo of Romario
Romario
Wed, 12 Apr 2023 15:30:45 UTC

Hello team! How can I configure the base_path for the frontend? I have NGINX and I want to do: /dashboard -> frontend /otlp -> port 4318 I can’t find a way to send my traces to port 4318. /dashboard redirects me to /login without `/dashboard` prepended

Photo of Romario
Romario
Wed, 12 Apr 2023 15:33:26 UTC

Prashant

Photo of Prashant
Prashant
Wed, 12 Apr 2023 15:34:40 UTC

Custom base URL is not supported by SigNoz frontend at the moment.

Photo of Prashant
Prashant
Wed, 12 Apr 2023 15:34:59 UTC

You would have to use subdomains instead.

Photo of Prashant
Prashant
Wed, 12 Apr 2023 15:35:04 UTC

cc <@4K143e> <@4K14c2>

Photo of Romario
Romario
Wed, 12 Apr 2023 15:35:24 UTC

Oh so subdomain for the frontend, and a different one to send the traces too?

Photo of Prashant
Prashant
Wed, 12 Apr 2023 15:38:09 UTC

yup.

Photo of Romario
Romario
Wed, 12 Apr 2023 15:38:20 UTC

got it, thanks, I’ll do that for now

Photo of Romario
Romario
Wed, 12 Apr 2023 15:38:33 UTC

I’m thinking of writing up a blogpost how to setup signoz docker-compose with nginx

Photo of Romario
Romario
Wed, 12 Apr 2023 15:39:00 UTC

I’m not that proficcient in nginx so it will help myself in the future :laughing:

Photo of Prashant
Prashant
Wed, 12 Apr 2023 15:39:11 UTC

Oh, that’s great to hear. :blush:

Photo of Romario
Romario
Wed, 12 Apr 2023 15:54:45 UTC

Is working! Thanks

Photo of Romario
Romario
Wed, 12 Apr 2023 15:54:59 UTC

would be nice to have an api token or basic auth out of the box

Photo of Romario
Romario
Wed, 12 Apr 2023 15:55:06 UTC

Otherwise I need to add it to NGINX