Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serving datalens ui under subpaths #112

Open
DmitriyErin opened this issue Feb 11, 2024 · 3 comments
Open

Serving datalens ui under subpaths #112

DmitriyErin opened this issue Feb 11, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@DmitriyErin
Copy link

Hi!

What about datalens-ui environment parameter in docker-compose.yml file, like ROOT_SERVER_PATH=http://localhost:8080/datalens

I has nginx on host machine, when i add location /datalens with proxy_pass to http://localhost:8080/ i've got page with progress bar and it all what i see

@resure
Copy link
Contributor

resure commented Feb 15, 2024

If I understand your request correctly, you want to serve datalens ui from a subpath, right?

At this point adding support for custom paths would be a big hustle with not very much benefit. We're recommending serving datalens from a different port or a custom domain name, that's pretty easy to configure with nginx or other reverse proxy.

@DmitriyErin
Copy link
Author

DmitriyErin commented Feb 16, 2024

U are right. I need serve datalens ui from subpath, like http://<my_domain>/datalens

Config section in host machine with NGINX, look like:
location /datalens{
proxy_pass http://localhost:port/datalens/;
proxy_redirect off;
}
It remove /datalens from path, and i see in log in container only 1 GET request, with reply 200. Its ok. I dont see POST reqests

But when i ask in browser http://localhost:port, i see GET request and may see POST requests...

Can i switch off NGINX in datalens-ui container and redirect all requests from host NGINX machine to container port 3030 (NodeJS)? How configure host NGINX correct? Like try_files @node, location @node {...} and etc...

@resure
Copy link
Contributor

resure commented Feb 16, 2024

DataLens UI itself currently does not support serving from non-root subpaths, even without nginx you will probably encounter various different problems with that.

@resure resure changed the title NGINX Serving datalens ui under subpaths Feb 16, 2024
@resure resure added the enhancement New feature or request label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants