Phoenix and Let's Encrypt

Yesterday I was using this post as reference to setup SSL certs to run a Elixir/Phoenix app and after struggle a little bit trying to serve the .well-known folder without nginx (or apache/etc), I found a simple solution:

certbot-auto certonly --webroot -w /path/to/my/app/_build/prod/lib/my_app/priv/static/ -d

Setting the webroot directly to the _build dir allowed me to serve .well-known running the app in prod mode and without the need to change any code and/or restart the app.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.