diff --git a/rootfs/etc/confd/templates/nginx.conf.tmpl b/rootfs/etc/confd/templates/nginx.conf.tmpl index e7fb1e3..d87ce9c 100644 --- a/rootfs/etc/confd/templates/nginx.conf.tmpl +++ b/rootfs/etc/confd/templates/nginx.conf.tmpl @@ -24,8 +24,8 @@ http { listen {{"{{"}}GIN_PORT{{"}}"}} ssl; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; - ssl_certificate /etc/ssl/nginx/fullchain.pem; - ssl_certificate_key /etc/ssl/nginx/privkey.pem; + ssl_certificate /etc/ssl/nginx/{{getenv "CERT_NAME" "fullchain.pem"}}; + ssl_certificate_key /etc/ssl/nginx/{{getenv "KEY_NAME" "privkey.pem"}}; ssl_ciphers HIGH:!aNULL:!MD5; keepalive_timeout 70; @@ -40,4 +40,4 @@ http { # Gin runtime {{"{{"}}GIN_RUNTIME{{"}}"}} } -} \ No newline at end of file +}