Correction for DNSDist(DoH DoT) service

This commit is contained in:
2023-05-25 05:52:18 +02:00
parent 9bf5f2dab4
commit 105ee89080
3 changed files with 32 additions and 17 deletions

View File

@@ -20,6 +20,13 @@
shell: openssl req -x509 -nodes -subj '/CN={{ domain }}' -days 3650 -newkey rsa:4096 -sha256 -keyout /etc/ssl/"{{ domain }}".key -out /etc/ssl/"{{ domain }}".crt
when: installCertbot == False
- name: Create self-signed certificate, if configured.
shell: "certbot -certonly -d {{ domain }} {{ alt_domains }} --{{ mode }} -m {{ email }} --agree-tos"
- name: Open port 80 for letsencrypt challenge
ufw:
rule: allow
port: 80
proto: tcp
when: installCertbot == True
- name: Create self-signed certificate, if configured.
shell: "certbot certonly --{{ mode }} -d {{ domain }} {{ alt_domains }} -m {{ email }} --agree-tos"
when: installCertbot == True