-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path02_create-node-configurations.sh
executable file
·105 lines (95 loc) · 2.75 KB
/
02_create-node-configurations.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/usr/bin/env bash
# Create Notary configuration
printf "*********************************************************************************\n"
printf "Create Notary configuration\n"
printf "*********************************************************************************\n"
install -m 644 /dev/null ./mynetwork/notary_node.conf
cat <<EOF >./mynetwork/notary_node.conf
devMode=true
emailAddress="[email protected]"
myLegalName="O=Notary, L=London, C=GB"
p2pAddress="notary:10200"
notary {
validating : false
}
rpcSettings {
address="0.0.0.0:10201"
adminAddress="0.0.0.0:10202"
}
EOF
printf "Created in: ./mynetwork/notary_node.conf\n\n"
# Create PartyA configuration
printf "*********************************************************************************\n"
printf "Create PartyA configuration\n"
printf "*********************************************************************************\n\n"
install -m 644 /dev/null ./mynetwork/partya_node.conf
cat <<EOF >./mynetwork/partya_node.conf
devMode=true
emailAddress="[email protected]"
myLegalName="O=PartyA, L=London, C=GB"
p2pAddress="partya:10200"
rpcSettings {
address="0.0.0.0:10201"
adminAddress="0.0.0.0:10202"
}
security {
authService {
dataSource {
type=INMEMORY
users=[
{
password="password"
permissions=[
ALL
]
username=user
}
]
}
}
}
cordappSignerKeyFingerprintBlacklist = []
sshd {
port = 2222
}
EOF
printf "Created in: ./mynetwork/partya_node.conf\n\n"
# Create PartyB configuration
printf "*********************************************************************************\n"
printf "Create PartyB configuration\n"
printf "*********************************************************************************\n\n"
install -m 644 /dev/null ./mynetwork/partyb_node.conf
cat <<EOF >./mynetwork/partyb_node.conf
devMode=true
emailAddress="[email protected]"
myLegalName="O=PartyB, L=London, C=GB"
p2pAddress="partyb:10200"
rpcSettings {
address="0.0.0.0:10201"
adminAddress="0.0.0.0:10202"
}
security {
authService {
dataSource {
type=INMEMORY
users=[
{
password="password"
permissions=[
ALL
]
username=user
}
]
}
}
}
cordappSignerKeyFingerprintBlacklist = []
sshd {
port = 2222
}
EOF
printf "Created in: ./mynetwork/partyb_node.conf\n\n"
printf "*********************************************************************************\n"
printf "COMPLETE\n"
printf "*********************************************************************************\n"