Enable Web UI on private network
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#
|
||||
|
||||
include_recipe "ipfs"
|
||||
include_recipe 'firewall'
|
||||
include_recipe "kosmos-ipfs::kredits_pinner"
|
||||
|
||||
node['kosmos-ipfs']['ipfs']['config'].each do |k, v|
|
||||
@@ -15,3 +16,11 @@ end
|
||||
unless node.chef_environment == "development"
|
||||
include_recipe "kosmos-ipfs::firewall_swarm"
|
||||
end
|
||||
|
||||
firewall_rule 'ipfs_api' do
|
||||
port 5001
|
||||
source "10.1.1.0/24"
|
||||
protocol :tcp
|
||||
command :allow
|
||||
logging :connections
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user