ansible-ffibk/roles/service-grafana/templates/grafana_vhost.conf.j2

24 lines
718 B
Text
Raw Normal View History

2018-09-11 14:21:28 +02:00
server {
listen 80;
listen [::]:80;
server_name {{ grafana_url_external }} {{ grafana_url_internal }};
2018-09-11 14:21:28 +02:00
include /etc/nginx/snippets/redirect-to-ssl.conf;
include /etc/nginx/snippets/letsencrypt-acme-challenge.conf;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name {{ grafana_url_external }} {{ grafana_url_internal }};
2018-09-11 14:21:28 +02:00
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;
include /etc/nginx/snippets/letsencrypt-acme-challenge.conf;
location / {
proxy_pass http://127.0.0.1:3000;
2018-09-11 14:21:28 +02:00
}
}