ansible-role-mailserver/templates/mxdomain-website-domain.nginx

15 lines
390 B
Nginx Configuration File

server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name {{ mailserver_mx_domain }};
ssl_certificate /etc/dehydrated/certs/{{ mailserver_mx_domain }}/fullchain.pem;
ssl_certificate_key /etc/dehydrated/certs/{{ mailserver_mx_domain }}/privkey.pem;
include snippets/letsencrypt.conf;
root /srv/http/{{ mailserver_mx_domain }};
index index.html index.htm index.php;
}