docker-flow-proxy-letsencrypt
docker-flow-proxy-letsencrypt copied to clipboard
Simplification of the setup
Why not providing an option to simplify the setup when com.df.serviceDomainm == com.df.letsencrypt.host one could omit the letsencrypt.host.
You right, do you want to submit a pull request ?
Would like too, but I am not a py expert and not trying to dive into it. I am just contributing by improving the UX from experience 😎
@n1b0r if nobody is working on it, maybe I'd try once again. :)
@vnkmpf ok :)
Good news - I think I have it's done now, but need to test it. Probably this weekend :)
if you can create an test image, I can also do some testing and contribute my part
So I tested it, and it seems to work.
Although I tested even with original version, I would still like to get it confirmed from @n1b0r : If I use -l com.df.letsencrypt.host=foo.example.com,bar.example.com, there is only one certificate for them generated, right? In my testing case only for foo, and if I got to bar, the cert for foo is served.
Here is info from log:
2018-01-14 23:16:53,493;INFO;letsencrypt support enabled.
2018-01-14 23:16:53,496;INFO;Letsencrypt support enabled, processing request: domains=foo.example.com,bar.example.com [email protected] testing=True
2018-01-14 23:17:04,458;INFO;certificates successfully created using certbot.
2018-01-14 23:17:04,464;INFO;combined certificate generated into "/etc/letsencrypt/live/foo.example.com/combined.pem".
2018-01-14 23:17:04,539;INFO;Request PUT /cert sucessfully send to DFP.
2018-01-14 23:17:04,624;INFO;Request PUT /cert sucessfully send to DFP.
I will push my branch tomorrow, as it's after midnight here now.
Then if @Vad1mo wants to test, you can just checkout, switch to the concrete branch and run docker build -t my-dfple .. Then rewrite your docker-compose file to use my-dfple image and happy testing :)
@vnkmpf yes only one cert will be generated by certbot and dpfle will deal with it (IIRC it will create symlink for each requested cert in the webroot path).
I ill try to test it asap and produce a test image if I have time.
Thanks for your time guys.
Yup, you're right. Now I checked and it's symlinked. Just now created a merge request. I hope it'll work alright :)