-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support for multiple spaces #16
Comments
Yes, Cloud Foundry routes are owned by a particular space and this script pushes an app to a specific space in order to serve traffic to a specific path within each hostname in the config.
Sure, we'd consider a pull request to this effect. |
My Python-foo is weak, so i was actually already thinking about doing this with a stupid bash script infront of bluemix-letsencrypt, but I might give it a whirl to do it the proper way. To further my understanding about how bluemix-letsencrypt works:
because when you generate the certificate the second time, for space2, it will not contain the route for space1 Am i correct in assuming this?
|
The tricky part to model is that domains and spaces are actually peers and routes/hostnames kind of belong to each. I think its easiest just to pick one top-level thing (either domain or space) and duplicate the other thing as needed in the config. I probably should have asked this before, but it would be useful to better understand your use case. I assume you have a number of apps in different spaces that all share the same domain and you're looking for a simple way to configure the SSL certs for them all at once? Side-note: Let's Encrypt now supports wildcard certs and possibly that would serve this use case better. I'll open a separate issue for it. |
Indeed, making this smart enough to work with multiple spaces is kind of hard.. |
In the meanwhile, i've hacked a simple bashscript together, which expects the 'bluemix-letsencrypt' repo in the same directory. Unfortunately not a very robust solution, but it kinda works for my purposes |
Am I correct in assuming that you need to run this once for each bluemix/cloudfoundry space?
If so, it would be nice if we could add support for multiple spaces within the
domain.json
, and perhaps runbx target --cf
before processing the domains within that space?The text was updated successfully, but these errors were encountered: