Enable Web UI on private network

This commit is contained in:
Râu Cao
2022-11-02 14:05:43 +01:00
parent 458558fb26
commit f7ff1248fe
3 changed files with 16 additions and 2 deletions

View File

@@ -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