Skip to content

Commit

Permalink
Conditionally add HTTPS inbound allow firewall rule (#1530)
Browse files Browse the repository at this point in the history
Add code to conditionally add HTTPS inbound allow firewall rule. Use `delete` parameter for toggling https firewall allow rule based on if any sites don't use SSL.
  • Loading branch information
strarsis authored Aug 18, 2024
1 parent a44d687 commit 1e505b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion group_vars/all/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

ferm_input_list:
- type: dport_accept
dport: [http, https]
dport: [http]
filename: nginx_accept
- type: dport_accept
dport: [https]
filename: nginx_accept_https
delete: "{{ not (sites_use_ssl | bool) }}"
- type: dport_accept
dport: [ssh]
saddr: "{{ ip_whitelist }}"
Expand Down

0 comments on commit 1e505b3

Please sign in to comment.