Move the firewall rule for ipfs p2p to the right recipe
This commit is contained in:
@@ -14,11 +14,6 @@ unless node.chef_environment == "development"
|
||||
protocol :tcp
|
||||
command :allow
|
||||
end
|
||||
firewall_rule 'ipfs_swarm_p2p' do
|
||||
port 4001
|
||||
protocol :tcp
|
||||
command :allow
|
||||
end
|
||||
end
|
||||
|
||||
include_recipe "kosmos-nodejs"
|
||||
|
||||
@@ -32,3 +32,12 @@ end
|
||||
ipfs_config "API.HTTPHeaders.Access-Control-Allow-Origin" do
|
||||
value ["*"]
|
||||
end
|
||||
|
||||
unless node.chef_environment == "development"
|
||||
include_recipe 'firewall'
|
||||
firewall_rule 'ipfs_swarm_p2p' do
|
||||
port 4001
|
||||
protocol :tcp
|
||||
command :allow
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user