ansible-role-postfix/templates/nginx/mta-sts.j2
2023-04-17 22:11:40 +02:00

14 lines
470 B
Django/Jinja

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; }
}