Open zaherg opened 4 years ago
Thanks, @zaherg. This would be a nice 2nd example of how to use this repository if you have your own domain name to use, but that changes the use case of this repository because I'm assuming everyone doesn't. How would you suggest we accommodate both scenarios?
@BretFisher how about having two folders, one with your code since it will use a self-signed SSL certificate and the second one for letsencrypt
@BretFisher how about we just add a link to my repo instead of editing your repo https://github.com/zaherg/letsencrypt-for-local-development ?
Sounds good. I haven't spent enough time to come up with a easy alternative that allows both approaches. I do like keeping your PR there as a way for users to see the difference in approaches so I'll keep that open.
This PR will utilize letsencrypt to create a valid SSL certificate that you can use.
Requirements:
127.0.0.1
docker-compose.yml
file to match yourfor example, if you are using DigitalOcean there is no need to change anything, just make sure to create a new file
.env
which contain the following information:I am sure this PR needs a lot of enhancing but this is just a starting point.
#Ref: a longer example can be found here https://gist.github.com/zaherg/26cb8f41073708d4b94239f0aaf3bb79