Enable Web UI on private network
This commit is contained in:
parent
458558fb26
commit
f7ff1248fe
|
@ -37,13 +37,13 @@
|
|||
"hostname::default",
|
||||
"ipfs::default",
|
||||
"ipfs::_user",
|
||||
"firewall::default",
|
||||
"chef-sugar::default",
|
||||
"kosmos-ipfs::kredits_pinner",
|
||||
"kosmos-nodejs::default",
|
||||
"nodejs::nodejs_from_package",
|
||||
"nodejs::repo",
|
||||
"kosmos-ipfs::firewall_swarm",
|
||||
"firewall::default",
|
||||
"chef-sugar::default",
|
||||
"kosmos-nginx::default",
|
||||
"nginx::default",
|
||||
"nginx::package",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
node.normal['ipfs']['version'] = "0.15.0"
|
||||
node.normal['ipfs']['checksum'] = "5830ce226956c5e2a2de3a3440704402dd3501c43ec16eeec2d61491317005f2"
|
||||
|
||||
node.default['kosmos-ipfs']['api']['port'] = 5001
|
||||
node.default['kosmos-ipfs']['ipfs']['config'] = {
|
||||
# The default gateway is already used by kosmos' hubot (8080)
|
||||
"Addresses.Gateway" => "/ip4/127.0.0.1/tcp/9090",
|
||||
|
@ -8,6 +9,10 @@ node.default['kosmos-ipfs']['ipfs']['config'] = {
|
|||
# lead to a slight performance improvement, as well as a reduction in memory
|
||||
# usage.
|
||||
'Swarm.DisableBandwidthMetrics' => true,
|
||||
# API with Web UI
|
||||
"Addresses.API" => "/ip4/0.0.0.0/tcp/5001",
|
||||
# Enable bandwith metrics
|
||||
'Swarm.DisableBandwidthMetrics' => false,
|
||||
# Disable the p2p-circuit relay transport
|
||||
'Swarm.Transports.Network.Relay' => false,
|
||||
# Number of connections that, when exceeded, will trigger a connection GC
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue