ansible-role-postfix/templates/nginx/mta-sts.j2
phil 8c79f8b687 Use Ansible defaults to insert comments
Enable vscodium code highlighting for some files
2024-03-27 17:39:16 +01:00

16 lines
503 B
Django/Jinja

{{ ansible_managed | comment }}
server {
listen 80;
server_name mta-sts.{{ item.name }};
include snippets/letsencrypt.conf;
location / { return 301 https://$http_host$request_uri; }
}
server {
listen 443 ssl http2;
server_name mta-sts.{{ item.name }};
ssl_certificate /var/lib/dehydrated/certs/mta-sts.{{ item.name }}/fullchain.pem;
ssl_certificate_key /var/lib/dehydrated/certs/mta-sts.{{ item.name }}/privkey.pem;
location /.well-known { alias /var/www/html; }
}