-
Notifications
You must be signed in to change notification settings - Fork 40
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure proxy prefix #127
Conversation
@abretaud great! Thanks for working on this! Can we change |
Right, I just changed its name. From what I have tested it works ok now. I had a problem accessing reports when DISABLE_REPORTS_AUTH was true, it looks like there was a bug in the nginx conf (because of the strange if behavior in nginx). I reworked it to avoid using the nginx I have problems running docker-in-docker at the moment, so I couldn't test IE. (Yet) |
templates/startup.sh.j2
Outdated
rm /etc/nginx/htpasswd | ||
echo "" > /etc/nginx/conf.d/reports_auth.conf | ||
else | ||
# enable authentification by deleting the htpasswd file |
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.
This comment looks wrong.
@jmchilton @mvdbeek any comment to this PR. Looks good to me. |
templates/startup.sh.j2
Outdated
# disable authentification by deleting the htpasswd file | ||
echo "Disable Galaxy reports authentification " | ||
rm /etc/nginx/htpasswd | ||
echo "" > /etc/nginx/conf.d/reports_auth.conf |
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.
Why not keep
if (!-f /etc/nginx/htpasswd) {
set $auth off;
}
in templates/nginx_reports_auth.conf.j2 ?
That would be better for people not using the docker image / these startup scripts.
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.
I'd prefer to, but it doesn't work unfortunately... When nginx enters into the if {}, the proxy_pass is ignored and you get a 404 error. I had a hard time finding out why, there are some examples explaining why there: http://agentzh.blogspot.fr/2011/03/how-nginx-location-if-works.html
@mvdbeek what do you think? |
This does now imperatively required a htpwassd file to use reports |
Hej!
I'm running galaxy dockers behind a collection of proxies, with url prefixes and it was a bit complicated to configure until now. So I'm preparing a PR for https://github.com/bgruening/docker-galaxy-stable where I introduce a new env var (GALAXY_CONFIG_PROXY_PREFIX) which will magically make all changes necessary to make all components aware of the url prefix.
The main logic is in this PR, most of it is working on my test setup, though I'll do more tests next week.
Open to any suggestions of course!
Happy easter! 馃 馃 馃