Add firewall rule for Discourse
This commit is contained in:
parent
79f623de4e
commit
163b12efbc
|
@ -8,3 +8,4 @@ version '0.1.0'
|
|||
chef_version '>= 14.0'
|
||||
|
||||
depends "kosmos-nginx"
|
||||
depends 'firewall'
|
||||
|
|
|
@ -32,3 +32,12 @@ systemd_unit "discourse.service" do
|
|||
}})
|
||||
action [:create, :enable]
|
||||
end
|
||||
|
||||
include_recipe 'firewall'
|
||||
|
||||
firewall_rule 'discourse' do
|
||||
port [3001]
|
||||
source "10.1.1.0/24"
|
||||
protocol :tcp
|
||||
command :allow
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue