I need to be able to manage thousands of domains in nginx, and each domain will have a lets-encrypt certification that I will manage.
I was reading how apache has a macro feature that lets you do something like where you don't have to repeat the same virtual host section for each domain.
If you have thousands of domains to manage this can come in handy.
Does nginx have something similar that can help in this regard?
<Macro VHost $domain>
<VirtualHost *:443>
ProxyProtocol On
ServerName $domain
SSLEngine on
SSLCertificateFile $domain.crt
SSLCertificateKeyFile $domain.key
SSLCertificateChainFile lets-encrypt-cross-signed.pem
</VirtualHost>