Add the ufw firewall

This commit is contained in:
2022-05-27 16:29:27 -04:00
parent d7838563a1
commit 45465ad26b
4 changed files with 42 additions and 0 deletions

View File

@@ -84,3 +84,12 @@
loop: "{{ proxy.dns_cloudflare.wildcard_domains }}"
when: proxy.production is defined and proxy.production and proxy.dns_cloudflare is defined
notify: reload_nginx
- name: Add HTTP and HTTPS firewall rule
ufw:
rule: allow
port: "{{ item }}"
proto: tcp
loop:
- "80"
- "443"