Bench setup nginx has no effect on nginx configuration

I am trying to setup frappe_docker to use SSL via a valid Letsencrypt certificate. I am following the guides listed below but the command “bench setup nginx” has no effect on the nginx configuration (/etc/nginx/conf.d/frappe.conf):

I also tried adding the “ssl_certificate” and ssl_certificate_key properties to common_sites.conf but still nginx configuration doesn’t add the necessary SSL configuration.

Can someone please point me in the right direction here?

For anyone interested, the problem is that the base ERPNext image overwrites /etc/nginx/conf.d/frappe.conf, effectively discarding any generated nginx config created during create_site.

The solution is customizing the base image so that the nginx configuration template includes the corresponding certs/SSL config.