Integrate Let's Encrypt for TLS certificate generation #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @arunoda,
I integrated Let's Encrypt for the generation of TLS free certificates within this image. Maybe you had a better idea about how to do this.
This feature is linked to a PR that I will submit now to
meteor-up x
, making use of it. I tested that it is backwards compatible with some of my projects. However, it may have some bugs or small tweakings.Automatic renewal of certificates
We should invest a bit more of time integrating the
webroot
plugin oflet's encrypt
.My idea was to create a volume to
bundle.crt
andprivate.key
to persist the generated certificates. Then, if the certificate is existing and the generation is on, it should try to generate a new certificate if the current certificate is about to expire and overwrite thebundle.crt
andprivate.key
files.I have set up the location in
nginx.conf
forwebroot
(not tested) and some logic in thestart.sh
to start the generation with webroot if the certificates are present.The reason for doing this is that nginx would not boot up if the certificates are not present, therefore I though that if the certificates are not present, we should generate them with the
standalone
plugin before booting nginx.Suggestions
If you have any suggestions to improve it, I am open to discuss it.