Update the mainnet recipe
This commit is contained in:
parent
383d3adaae
commit
541599434d
@ -7,6 +7,13 @@
|
|||||||
# All rights reserved - Do Not Redistribute
|
# All rights reserved - Do Not Redistribute
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Sets up a parity node running on the mainnet chain on port 8547 (behind
|
||||||
|
# nginx, with HTTPS)
|
||||||
|
|
||||||
|
rpc_proxy_port = 8547
|
||||||
|
rpc_port = 18547
|
||||||
|
dapps_port = 8182
|
||||||
|
|
||||||
credentials = Chef::EncryptedDataBagItem.load('credentials', 'parity')
|
credentials = Chef::EncryptedDataBagItem.load('credentials', 'parity')
|
||||||
|
|
||||||
parity_node "mainnet" do
|
parity_node "mainnet" do
|
||||||
@ -17,14 +24,33 @@ parity_node "mainnet" do
|
|||||||
},
|
},
|
||||||
network: {
|
network: {
|
||||||
port: 30305,
|
port: 30305,
|
||||||
|
warp: true,
|
||||||
},
|
},
|
||||||
rpc: {
|
rpc: {
|
||||||
port: 8547,
|
port: rpc_port,
|
||||||
|
cors: "*",
|
||||||
|
apis: ["web3", "net", "traces", "rpc", "eth"],
|
||||||
|
hosts: ["all"],
|
||||||
},
|
},
|
||||||
dapps: {
|
dapps: {
|
||||||
port: 8092,
|
port: dapps_port,
|
||||||
},
|
},
|
||||||
ui: {
|
ui: {
|
||||||
port: 8182,
|
disable: true,
|
||||||
|
},
|
||||||
|
websockets: {
|
||||||
|
disable: true,
|
||||||
}
|
}
|
||||||
|
rpc_proxy_port rpc_proxy_port
|
||||||
|
end
|
||||||
|
|
||||||
|
# The firewall_rule doesn't appear to work inside a resource, that's why we're
|
||||||
|
# doing it here
|
||||||
|
unless node.chef_environment == "development"
|
||||||
|
include_recipe 'firewall'
|
||||||
|
firewall_rule "parity_mainnet" do
|
||||||
|
port rpc_proxy_port
|
||||||
|
protocol :tcp
|
||||||
|
command :allow
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user