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

Modify GxIT URL for eu subdomains #67

Open
yvanlebras opened this issue Feb 9, 2021 · 3 comments
Open

Modify GxIT URL for eu subdomains #67

yvanlebras opened this issue Feb 9, 2021 · 3 comments

Comments

@yvanlebras
Copy link

Hi eu team!

Hope all is ok for you. Is it possible to modify a GxIT URL like https://c0f1771e21d7ee60-83b672c1b14a476180d38bdedbe5360c.interactivetoolentrypoint.interactivetool.ecology.usegalaxy.eu/sample-apps/SIG/ coming from subdomains to point for example https://c0f1771e21d7ee60-83b672c1b14a476180d38bdedbe5360c.interactivetoolentrypoint.interactivetool.usegalaxy.eu/sample-apps/SIG/ non subdomains oriented URL ? This will allow direct display of GxIT content instead of having an intermediate step related to security and https

@hexylena
Copy link
Member

hexylena commented Feb 9, 2021

The better solution is to use the path-based proxying that was added recently in Galaxy (giving more parity with the original GIEs).

If you can get your IT working with path-based proxying then, it won't be an issue, and it's easier for admins everywhere :) Currently the DNS based proxying is more or less impossible for most admins :(

@yvanlebras
Copy link
Author

whowho, thank you Helena, so if I understand, we can manage it on the GxIT side ? Do you have an example just to be sure to understand ?

THANK YOU §!!! And have a wonderfull day !!

@hexylena
Copy link
Member

hexylena commented Feb 9, 2021

No, unfortunately dan didn't provide any examples or documentation :(

https://github.com/galaxyproject/galaxy/pull/8596/files is the PR, I think you need to set requires_domain=False in your XML to start.

the interactivetools_prefix needs to be set (doesn't much matter)

entry_point_prefix = self.app.config.interactivetools_prefix

then it will generate a URL like:

rval = self.app.url_for(f'/{entry_point_prefix}/access/{entry_point_class}/{entry_point_encoded_id}/{entry_point.token}/')

but I'm not sure how this is communicated to the container, or if it is. If it is not, we need to do so, and then the container needs to know how to proxy this (some examples are around, I can help here.)

If you can test the first part (set requires_domain=false) and provide to me the environment variables passed into the container, I can help update your container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants