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

Feature Request: Support Configurable Base Path When Self-Hosting Evidently UI #1363

Open
robert-inkpen opened this issue Nov 4, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@robert-inkpen
Copy link

Hello,

We are currently self-hosting Evidently UI on our servers and need to integrate it with our existing infrastructure, which includes single sign-on (SSO) and hosting the application under a specific base path.

It would be great if Evidently UI could support configuring a base path when self-hosting, so that all the URLs and static assets correctly reference the base path. This would allow us to host it behind a reverse proxy or under a specific path in our instance.

Thank you!

@Dhavaleswar
Copy link

Hi @robert-inkpen did you find any workaround temporarily

@robert-inkpen
Copy link
Author

Evidently is in POC phase at our company so for the time being we provisioned it it's own endpoint sitting behind our SSO. Which doesn't allow it to be in our catalogue of tools but gets some of the power users access.
One of the problems is that it has to be managed separately compared to everything else.

@elenasamuylova
Copy link
Collaborator

Hi @robert-inkpen, I'm afraid we don't currently have the capacity to implement this feature, but we welcome your contributions here if you are up to it!

Note that we also offer a commercial enterprise version with extra features (available for self-hosting) if that's an option for you.

@elenasamuylova elenasamuylova added the enhancement New feature or request label Nov 12, 2024
@DimaAmega
Copy link
Collaborator

DimaAmega commented Nov 14, 2024

@robert-inkpen I think I have dirty hack for you request, try to use this image (it may be broken in some corner cases 😃 but I would try it)

FROM evidently/evidently-service:latest

# Change `BASE_PATH`, escape `/` by `\/` as in example below

RUN BASE_PATH="evidently\/ui" && \
    cd $(python -c "import evidently as e;print(e.__path__[0] + '/ui/assets')") && \
    sed -i "s/\(src\|href\)=\"\//&$BASE_PATH\//g" index.html && \
    find . -type f -name '*.js' -exec sed -i \
        -e "s/\(to\|path\|baseUrl\):\"\/\"/\1:\"\/$BASE_PATH\"/g" \
        -e "s|static/js/|$BASE_PATH/static/js/|g" {} +

Also, have you considered using subdomains for hosting evidently?

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

4 participants