-
Notifications
You must be signed in to change notification settings - Fork 9
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
Apollo Credentials and other configuration #14
Comments
Yes, I think that if you want to modify the apollo-config.groovy file, you need to rebuild the image. I remember I tried to make it more flexible, but I don't remember if I found a way, or gave up( probably the second)
There's a default local Apollo admin user predefined: login = |
Thanks for the quick response to this, @abretaud. Alas, I must be doing something wrong because despite creating a Galaxy account, I am not automatically logged into Apollo... the Login dialog box still comes up on the screen and refuses to accept any plausible credentials that I throw at it. I should confess to a minor deployment complexity, though: given a scarcity of public IP addresses, we are actually running all our traffic through a front end NGINX proxy on another machine, which itself targets the 2nd NGINX proxy of the dockerized-gmod-deployment system. Double jeopardy, I guess, especially given that the galaxy cookie proxy does some fancy tunnelling through @erasche https://github.com/erasche/gx-cookie-proxy. Aliasing the site directly to its own public IP is not completely out of the question but I'd like to avoid this, if feasible. I'll see if I can wrap my head around the gx-cookie-proxy and figure out if I need to do something different here. |
@erasche @abretaud These past few days, I've been taking a fresh run at using this project, but am still a bit stuck on the Apollo integration. When I access the /apollo path link, I fail to get the site but instead get the following error message:
Do you have any idea what is going on (where I should look to fix this)? Hmm... Googling this error message suggests that it is a docker (or docker-compose) related issue. I'll see if I can figure out if I broke something in my build somewhere... but if you have any idea what is going on, please let me know. |
Ah yeah, I'm afraid this is definitely a docker/host issue that we can't really help debug :( That port is DNS, something isn't right there. It shouldn't be a problem with any of the containers. Maybe try reproducing on another machine? |
I'm afraid I'd missed your previous message
That should be fine, you shouldn't have to setup a separate domain or IP address for this. I completely understand the restriction, I worked at a place where you got one public domain and one public IP and no subdomains. It was unpleasant for sure. :( The cookie proxy you can just imagine as another layer in the proxying, it will read the Cookie header and set a |
See mattermost/mattermost-docker#368 I figured out that in my zeal to deprecate the Compose V 3.x "links" field, that I had commented out:
but that the 'target' alias was used just above in the remoteuser service configuration, i.e.
I don't know if the use of this ad hoc domain name is necessary, but I'd like to try changing it back to 'apollo' in the service and see if that works. Yep... changing target hostname to apollo in the remoteuser service GXC_BACKEND_URL environment variable seemed to get the apollo service running again. However, I haven't tested the Galaxy integrated user authentication yet, so... |
It isn't needed, but you'll need to change
to use apollo instead of target |
Yep, @erasche did that and it worked :-). However, with Apollo now running, I've tried logging into Galaxy and accessing the /apollo path (which comes up) and it presents the Apollo login dialog, which is refactory to my Galaxy user account. BTW, I did rename the admin user account and change the password (from the Galaxy 'preferences') but perhaps, that is a perilous thing to do (as in Tripal). I did try registering a second non-admin account, but that one also failed to authenticate. Here's the docker compose log snippet, which might be informative for diagnosing the failure conditions:
|
that is the key one. Is apollo beneath the galaxy path? If not, it must be. (e.g. /galaxy, and /galaxy/apollo) Or you need to scope your galaxy cookie to / |
Thanks for the quick reply. I'm just using the standard paths of the original configuration, I think, so my Galaxy is path '/' and apollo is path '/apollo', so I would expect this error to crop up, but since I'm now attempting the "galaxy" and "tripal" path swap again, I'll pay close attention to this |
@erasche, @abretaud I have managed to swap the Galaxy and Tripal sites paths at https://sunflower.divseekcanada.ca. The system does build up and run (see a test deployment at https://sunflower.divseekcanada.ca). However, my attempts to apply your advice to make the system resolve the Galaxy-Apollo user authentication have not be successful. In some cases, the configuration changes badly broke the Apollo path. Thus, I simply reverted (for now) back to the original apollo configuration. I am wondering if you could possibly have a quick look at our configurations from your end? We forked your dockerized-gmod-deployment code to https://github.com/DivSeek-Canada/divseek-canada-portal and created a special development branch called divseek-canada-build (which is the default branch on our forked repo). As a matter of explanation, we've made some changes to the docker-compose.yml file to parameterise it a bit (see template.env for applicable environment variables, copied into .env (dot-env) and the main README). We've also tried to apply Compose 3.x standards and deprecate fields (e.g. links, volumes_from, etc.) which are deprecated or forbidden in this compose release. I am hopeful that most of the build remains functional despite these changes (but this needs validation). We've also split the There are probably some other oddities about which you may wish an explanation. Just ask me about them. I've run out of time at my end to work on this right now - other urgent professional fires beacon to be extinguished. If you wish, you can branch off to apply necessary changes and issue a pull request back to our fork. BTW, let me know if the modified README (on our branch) makes sense. I'm targeting a slightly less Docker-savvy crowd with it hence the extra excruciating detail. Using it, you can fire up the modified system at your end to poke around and offer feedback on how to repair things. I hope you can help. |
Aside from perhaps overriding the docker image (through an extra Dockerfile), it is unclear how one applies Apollo configuration options. One gets the impression that this is normally done using the apollo-config.groovy file.
Beyond that, the simple question arises as to what exactly are the default Apollo admin credentials for this system?
Sorry for my relative ignorance about this.
The text was updated successfully, but these errors were encountered: