Added variable to inventory to add a separate key file

This commit is contained in:
ggiinnoo
2020-04-28 11:13:47 +02:00
parent c2e9df74e4
commit 41a8d32dcc
3 changed files with 12 additions and 2 deletions

View File

@@ -47,7 +47,12 @@ http {
{%endif %}
server {
{% if ssl_certificate is defined %}
{% if (ssl_certificate is defined) and (ssl_certificate_key is defined) %}
listen 8053 ssl;
ssl_certificate /etc/nginx/awxweb.pem;
ssl_certificate_key /etc/nginx/awxweb_key.pem;
{% elif if (ssl_certificate is defined) and (ssl_certificate_key is not defined) %}
listen 8053 ssl;
ssl_certificate /etc/nginx/awxweb.pem;