I host an online rails app where many, hundreds, of domains point to it. The routes file looks at the domain and figures out what content to server.
I’m trying to encrypt all of the sites using Lets Encrypt and I have successfully used the acme-client gem to verify domains and generate certificates.
The next big issue is actually using the certificates. It is impractical and timely to create a “server” block in the nginx config file for each and every domain and I want to know if it is possible to serve SSL certificates dynamically? Or as an alternative, what would be a better way to overcome this issue?