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

[DOC] - Running servers on Nebari (panel serve, flask apps, etc) #240

Open
1 task done
kcpevey opened this issue Dec 6, 2022 · 3 comments
Open
1 task done

[DOC] - Running servers on Nebari (panel serve, flask apps, etc) #240

kcpevey opened this issue Dec 6, 2022 · 3 comments

Comments

@kcpevey
Copy link
Contributor

kcpevey commented Dec 6, 2022

Preliminary Checks

Summary

If you're running something as a server on Nebari, you'll need to modify the URL to get the proper link.

The URL will need to be in the form:
{nebari instance url}/user/{username}/proxy/{port}/{app_name}

Supposing {username} ran panel serve --allow-websocket-origin=nebari.qhub.dev --port 5006 my_app.py

The url to access this app will be: https://nebari.quansight.dev/user/[email protected]/proxy/5006/my_app (without the extension).

Note that Panel is also a special case where you'll need to add "allow-websocket-origin" parameter for security reasons.

Steps to Resolve this Issue

...

@pavithraes
Copy link
Member

Thanks for opening this, @kcpevey!

Some context for new folks interested in contributing, we need to document the above behavior in relevant pages, including:

@pmeier
Copy link
Member

pmeier commented Apr 1, 2024

In case you deploy something without an {app_name}, the URL must include a trailing / after {port}, i.e. {nebari instance url}/user/{username}/proxy/{port}/. Dropping the /, i.e. {nebari instance url}/user/{username}/proxy/{port} will send relative requests, e.g. static files, to {nebari instance url}/user/{username}/proxy/ as root.

@Adam-D-Lewis
Copy link
Member

Relevant info: nebari-dev/nebari#2273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo 📬
Status: New 🚦
Development

No branches or pull requests

4 participants