service-prometheus: quick fix for wrong ssl cert

should be fixed properly (see #28)
This commit is contained in:
Julian Labus 2019-09-27 15:39:56 +02:00
parent e3c29a0d28
commit b0f34b0754
No known key found for this signature in database
GPG Key ID: 8AF209F2C6B3572A
1 changed files with 5 additions and 0 deletions

View File

@ -3,8 +3,13 @@ server {
listen [{{ lookup('dig', inventory_hostname, 'qtype=AAAA') }}]:9100 ssl;
server_name {{ inventory_hostname_short }}.{{ http_domain_external }} {{ inventory_hostname_short }}.{{ http_domain_internal }};
{% if acme_server == 'zuckerwatte' %}
ssl_certificate /etc/nginx/ssl/{{ inventory_hostname_short }}.{{ http_domain_external }}/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/{{ inventory_hostname_short }}.{{ http_domain_external }}/privkey.pem;
{% else %}
ssl_certificate /etc/nginx/ssl/{{ http_domain_external }}/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/{{ http_domain_external }}/privkey.pem;
{% endif %}
include /etc/nginx/snippets/letsencrypt-acme-challenge.conf;