Skip to content

Commit

Permalink
Add config for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Ji committed Jan 29, 2019
1 parent e9270d0 commit 4b5bb64
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/assets/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
set -ue

PREFIX=${PREFIX:="/data/iserver"}
INET=${PREFIX:="testnet"}
VERSION=${VERSION:="latest"}

PRODUCER_KEY_FILE=keypair
Expand Down Expand Up @@ -185,8 +186,8 @@ docker-compose pull
# Get genesis info
#

$CURL "https://developers.iost.io/docs/assets/testnet/$VERSION/genesis.tgz" | tar zxC $PREFIX
$CURL "https://developers.iost.io/docs/assets/testnet/$VERSION/iserver.yml" -o $PREFIX/iserver.yml
$CURL "https://developers.iost.io/docs/assets/$INET/$VERSION/genesis.tgz" | tar zxC $PREFIX
$CURL "https://developers.iost.io/docs/assets/$INET/$VERSION/iserver.yml" -o $PREFIX/iserver.yml

#
# Config producer
Expand Down
1 change: 0 additions & 1 deletion docs/assets/mainnet/README.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/assets/mainnet/latest
Binary file added docs/assets/mainnet/v1.0.0/genesis.tgz
Binary file not shown.
57 changes: 57 additions & 0 deletions docs/assets/mainnet/v1.0.0/iserver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
acc:
id: visiter00
seckey: 21h8pQe7kg4ATH6Krh2BXorAj7E5SvF5KdFiCghUByjFEEUKrL8Fmig331NqdNveoiCwhmuxoWnCV7pdu96epork
algorithm: ed25519
genesis: /var/lib/iserver/genesis
db:
ldbpath: /var/lib/iserver/storage/
snapshot:
enable: false
filepath: /var/lib/iserver/storage/snapshot.tar.gz
p2p:
listenaddr: 0.0.0.0:30000
seednodes:
- /ip4/18.209.137.246/tcp/30000/ipfs/12D3KooWGoPE333zygBN61vtSjvPfosi78JFSwRRDrLoAKaH1mTP # N. Virginia
- /ip4/54.180.196.80/tcp/30000/ipfs/12D3KooWMm2RzyZDPBie89FXceKFSBRg8zzkwAGQmdauj6tmrqcA # Seoul
- /ip4/13.239.153.239/tcp/30000/ipfs/12D3KooWEavwbgwrgah2sc7pfdJMcEkbEB38DETnE8zwQj8EU1Fg # Sydney
- /ip4/52.197.100.115/tcp/30000/ipfs/12D3KooWGBbN2VBUVWPygcm6AwX8WM8jGXFf4QhCbaKdfAeahePJ # Tokyo
- /ip4/35.182.211.144/tcp/30000/ipfs/12D3KooWQMUkJECpA3cwyN4UaWEHE4bTFkAn8xZUDFchZe8omXk2 # Central, Canada
- /ip4/35.157.137.25/tcp/30000/ipfs/12D3KooWDsTP7KxBSj7rKuVKm6J6fbJCC2e77Ftix21nZZXsiCcb # Frankfurt
- /ip4/35.176.24.11/tcp/30000/ipfs/12D3KooWHzHUBq4x4LmXtZH79LCAxVUYgpKXgMgAtyvYQWeHZAAp # London
- /ip4/35.181.10.219/tcp/30000/ipfs/12D3KooWHjBMcSFxAcCE3kfbuQBSchYbrvt5aRHTRpRFA5x5NYDz # Paris
chainid: 1024
version: 1
datapath: /var/lib/iserver/p2p/
inboundConn: 18
outboundConn: 12
blackPID:
blackIP:
adminPort: 30005
rpc:
enable: true
gatewayaddr: 0.0.0.0:30001
grpcaddr: 0.0.0.0:30002
trytx: true
allowOrigins:
- "*"
log:
filelog:
path: /var/lib/iserver/logs/
level: info
enable: false
consolelog:
level: info
enable: true
asyncwrite: true
enablecontractlog: true
metrics:
pushaddr: pushgateway
username:
password:
enable: false
id: mainnet:visiter00
debug:
listenaddr: 127.0.0.1:30003
version:
netname: mainnet
protocolversion: "1.0"

0 comments on commit 4b5bb64

Please sign in to comment.