infra: MTA-STS HTTPS vhost (cert issued, policy live)
This commit is contained in:
parent
7399211271
commit
bf4e8c2277
1 changed files with 13 additions and 2 deletions
|
|
@ -1,7 +1,18 @@
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
http2 on;
|
||||||
|
server_name mta-sts.performancewest.net;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/mta-sts.performancewest.net/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/mta-sts.performancewest.net/privkey.pem;
|
||||||
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256;
|
||||||
|
location /.well-known/mta-sts.txt { root /var/www/mta-sts; default_type text/plain; add_header Cache-Control "max-age=86400"; }
|
||||||
|
location /.well-known/acme-challenge/ { root /var/www/certbot; }
|
||||||
|
location / { return 404; }
|
||||||
|
}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name mta-sts.performancewest.net;
|
server_name mta-sts.performancewest.net;
|
||||||
location /.well-known/acme-challenge/ { root /var/www/certbot; }
|
location /.well-known/acme-challenge/ { root /var/www/certbot; }
|
||||||
location /.well-known/mta-sts.txt { root /var/www/mta-sts; default_type text/plain; }
|
location / { return 301 https://$host$request_uri; }
|
||||||
location / { return 404; }
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue