15 lines
470 B
Text
15 lines
470 B
Text
|
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; }
|
||
|
}
|