|
|
@ -4,7 +4,7 @@ server { |
|
|
|
server_name _; |
|
|
|
server_name _; |
|
|
|
root /dev/null; |
|
|
|
root /dev/null; |
|
|
|
|
|
|
|
|
|
|
|
if ($host !~ ^(autoconfig.thelyoncompany.com|autodiscover.thelyoncompany.com|webmail.thelyoncompany.com|email.thelyoncompany.com|matrix.thelyoncompany.com|thelyoncompany.com)$ ) { |
|
|
|
if ($host !~ ^(autoconfig.thelyoncompany.com|autodiscover.thelyoncompany.com|webmail.thelyoncompany.com|email.thelyoncompany.com|im.thelyoncompany.com|conference.im.thelyoncompany.com|proxy.im.thelyoncompany.com|pubsub.im.thelyoncompany.com|upload.im.thelyoncompany.com|matrix.thelyoncompany.com|thelyoncompany.com)$ ) { |
|
|
|
return 444; |
|
|
|
return 444; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -26,11 +26,12 @@ server { |
|
|
|
ssl_certificate_key /etc/letsencrypt/live/email.thelyoncompany.com/privkey.pem; |
|
|
|
ssl_certificate_key /etc/letsencrypt/live/email.thelyoncompany.com/privkey.pem; |
|
|
|
ssl_trusted_certificate /etc/letsencrypt/live/email.thelyoncompany.com/chain.pem; |
|
|
|
ssl_trusted_certificate /etc/letsencrypt/live/email.thelyoncompany.com/chain.pem; |
|
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; |
|
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; |
|
|
|
|
|
|
|
|
|
|
|
include /etc/nginx/snippets/ssl.conf; |
|
|
|
include /etc/nginx/snippets/ssl.conf; |
|
|
|
|
|
|
|
|
|
|
|
add_header Strict-Transport-Security "max-age=31536000"; |
|
|
|
add_header Strict-Transport-Security "max-age=31536000"; |
|
|
|
|
|
|
|
|
|
|
|
if ($host !~ ^(autoconfig.thelyoncompany.com|autodiscover.thelyoncompany.com|webmail.thelyoncompany.com|email.thelyoncompany.com|matrix.thelyoncompany.com|thelyoncompany.com)$ ) { |
|
|
|
if ($host !~ ^(autoconfig.thelyoncompany.com|autodiscover.thelyoncompany.com|webmail.thelyoncompany.com|email.thelyoncompany.com|im.thelyoncompany.com|conference.im.thelyoncompany.com|proxy.im.thelyoncompany.com|pubsub.im.thelyoncompany.com|upload.im.thelyoncompany.com|matrix.thelyoncompany.com|thelyoncompany.com)$ ) { |
|
|
|
return 444; |
|
|
|
return 444; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -43,4 +44,3 @@ server { |
|
|
|
add_header Referrer-Policy "no-referrer-when-downgrade"; |
|
|
|
add_header Referrer-Policy "no-referrer-when-downgrade"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|