-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Allow path-based interactive tools using nginx proxy #14694
Conversation
Did not find existing tests of InteractiveToolManager. I don't have time to write one. |
Also thx to @morj-uio for making this work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working that out!
Do you think that'll be necessary ? domain-based ITs are working with a local instance, and I don't think Galaxy should enter the field of being a proxy. |
When you say that domain-based ITs are working with a local instance, are you referring to the The main logical problem is this:
With gx-it-proxy, Galaxy is already in the proxy business. One possible solution might be to update that proxy to also handle path-based URLs. In addition, if one could configure Galaxy to add a port number to the path-based urls, I think we are in business. If this solution makes better sense than any alternatives, I can add an issue there. I don't know who is primarily maintaining that repo, though, if any. |
Here's the current docs: https://docs.galaxyproject.org/en/release_22.05/admin/special_topics/interactivetools.html#server-side-configuration-of-galaxy-interactivetools, we simply use localhost. I don't quite see what's wrong with running nginx with the docs you've outlined here, but sure, if you can figure out a solution with https://github.com/galaxyproject/gx-it-proxy we're happy to merge that. There's some stalled work on supporting traefik for ITs, but at the time it seemed that you'd still need a proxy upstream, so I'm not sure that's the right direction. |
Right. I missed that. This is clearly an improvement over the previous hack! Not sure exactly how this works, but it will in any case only work for the domain-based URLs for now. So setting up nginx on your laptop to be able to test out path-based ITs is at least not the right tool for the job. Improving gx-it-proxy seems to be the correct option, then, and it seems there isn’t any need to do anything on the Galaxy side. I’ll see what I can do if no-one else beats me to it, but it will have to wait a bit as we have now gotten our path-based IT up to run again on the deployed server using nginx, which was our immediate concern. |
Thinking a bit further, I see now that I have been a bit confused. As I was thinking that one had to use the To put it simply: Can one conclude that if one is able to run an IT with |
This PR was merged without a "kind/" label, please correct. |
Fixed issue causing the path of the path-based interactive tool entry point IRI to begin with two slashes (when
interactivetools_base_path
has the default value/
). Additionally added documentation for how to set up path-based interactive tools using a nginx proxy (while we are waiting for a fix for stand-alone galaxy deployments, see: #14690)How to test the changes?
(Select all options that apply)
galaxy.yml.interactivetools
andjob_conf.xml.interactivetools
.requires_domain=False
(which is a bit cumbersome, as I don't think any of the bundled ones support that).License