-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Configuration of SSL #31
Comments
There seems to be a catch-22 here, where
|
Where exactly should the ssl certificates exist on the host in order for this to work? I wonder if this could be a flag, and we'd import the ssl files from a location and place them in the right path during service:create? |
After looking at how this plugin works I finally managed to get SSL working with some awful hacks, so let me explain that first for reference:
Now hopefully no one else has to work all that out 😅 @josegonzalez A flag would actually be really nice. I would imagine being able to do something like
Then if those 3 options are set, during the creation process dokku can copy the files to the data directory, set up the environment variables, and set a flag to change the port mapping if you later run It's a bit weird having it as 3 arguments which are all-or-nothing, but that would probably make more sense to me than using a folder with set filenames / zip file / whatever |
Hi, any news about this without @binary-koan 's awful hacks? |
Thanks!! Thats been super useful :D |
Is the reason folks are setting up tls for external access to rabbitmq? Or is this always going from a dokku app to a rabbitmq on the same host? The bit that makes this annoying is that the ports change if using TLS or not. Everything else is... well we can deal with it. |
Personally I was trying to set it up for external access (running database-ish things on a separate server so we could easily scale and swap out the app servers). Although that's maybe not the kind of setup / scale that dokku is aiming for at the moment anyway |
I think there are a few things we can make easier here:
dokku rabbitmq:create test
dokku rabbitmq:stop test
dokku rabbitmq:configure-ssl $SERVICE $cert-file $key-file $ca-file
dokku rabbitmq:start $SERVICE This doesn't lend itself well to config management due to the need to check if ssl is configured before configuring it, so I'm curious to hear what folks think might be a good route to solving that might be. |
The stop/pause changes are now implemented everywhere. The only thing left would be the |
HI,
does anyone knows if it is possible with any changes to the code to activate SSL in Rabbit?
Do we need another volume besides the data where the keys will be stored ?
I am trying to pass the environment variables needed by rabbit docker but
export RABBITMQ_CUSTOM_ENV="RABBITMQ_SSL_CERT_FILE=/var/lib/rabbitmq/ssl_files/cert.pem;RABBITMQ_SSL_KEY_FILE=/var/lib/rabbitmq/ssl_files/key.pem;RABBITMQ_SSL_CA_FILE=/var/lib/rabbitmq/ssl_files/cacert.pem"
cat: /var/lib/rabbitmq/ssl_files/cert.pem: No such file or directory
The text was updated successfully, but these errors were encountered: