Skip to content

Commit

Permalink
Add tls
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Jan 2, 2021
1 parent eb76bb6 commit a6529a7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
16 changes: 16 additions & 0 deletions host_vars/mail01.l3d.space.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,29 @@ users:
- [email protected]
- [email protected]
- [email protected]
mailwebuser:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]

accounts:
- l3d
- mailwebuser

# mail domains
additional_dns_maildomains: 'mail.l3d.space imap.l3d.space smtp.l3d.space'


nginx_sites:
- name: 'mail.l3d.space'
webroot:
user: 'mailwebuser'

acme_notification_email: "acme_{{ inventory_hostname }}@l3d.yt"

# firewall
firewall_allowed_tcp_ports:
- "22"
Expand Down
4 changes: 4 additions & 0 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@
roles:
- { role: mailserver_preperation, tags: [mail,mailserver_preperation,prep,mailserver]}
- { role: unbound, tags: [mail,unbound]}
- { role: webhost2, tags: [mail,webhost]}
- { role: acmetool_fix, tags: [mail,acmetool]}
- { role: acmetool2, tags: [mail,acmetool]}
- { role: nginx2, tags: [mail,nginx]}
- { role: robertdebock.dovecot, tags: [mail,postfix]}
# - { role: dovecot, tags: [mail,dovecot]}
14 changes: 14 additions & 0 deletions templates/files/nginx/sites/mail.l3d.space_tls.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name mail.l3d.space;

include snippets/tls_parameters_{{ site.name }}.snippet.conf;
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
include snippets/logging_{{ site.name }}.snippet.conf;

location / {
return 418;
}
}

0 comments on commit a6529a7

Please sign in to comment.