ansible-role-webserver/templates/10-tls.nginx

14 lines
336 B
Nginx Configuration File

server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name {{ inventory_hostname }};
ssl_certificate /etc/dehydrated/certs/{{ inventory_hostname }}/fullchain.pem;
ssl_certificate_key /etc/dehydrated/certs/{{ inventory_hostname }}/privkey.pem;
include /etc/nginx/local.d/*.act;
include snippets/letsencrypt.conf;
}