-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.vars
More file actions
121 lines (76 loc) · 3.2 KB
/
sample.vars
File metadata and controls
121 lines (76 loc) · 3.2 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# This is a sample variables file. It should/will be copied to your users home folder.
#
# example: cp -n sample.vars ~/"pli_$(hostname -f)".vars
#
# NOTE: There are a minimum set of variables that you MUST change before deploying your
# node. These are as follows;
#
# API_EMAIL
# API_PASS
# PASS_KEYSTORE
# DB_PWD_NEW
# PLI_SSH_NEW_PORT
# #### VARIABLES for pli_node_scripts.sh (main script) ####
# ---------------------------------------------
# ubuntu packages that the main script depends on;
REQ_PACKAGES=(git curl nano python3)
BASE_SYS_PACKAGES=(net-tools git curl nano ufw whois htop mlocate apache2-utils expect)
BASH_FILE1="secrets.toml"
BASH_FILE2="NodeStartPM2.sh"
BASH_FILE3="config.toml"
PLI_BASE_DIR="$HOME"
PLI_DEPLOY_DIR="pluginv3.0"
PLI_DEPLOY_PATH="$PLI_BASE_DIR/$PLI_DEPLOY_DIR"
VER_GO_PKG="go1.21.7"
VER_NVM="20.18.1"
VER_PNPM="pnpm@9"
# -- .env.password == keystore (STRONG PASSWORD !!)
# -- .env.apicred == Local Jobs Web Server credentials
#FILE_API=".env.apicred"
#FILE_KEYSTORE=".env.password"
# -- secrets.toml == keystore (STRONG PASSWORD !!) & Postgres DB passwords
# -- apicredentials.txt == Local Jobs Web Server credentials
FILE_API="apicredentials.txt"
FILE_KEYSTORE="secrets.toml"
API_EMAIL="user123@gmail.com"
API_PASS='passW0rd123'
# -- NOTE on API_PASS: error creating api initializer: must enter a password with 8 - 50 characters
# -- NOTE on PASS_KEYSTORE: Must be a strong password - Min. 12 characters, 3 lower, 3 upper, 3 numbers, 3 symbols & no more than 3 identical consecutive characters
PASS_KEYSTORE='$oM3$tr*nGp4$$w0Rd$'
# SUB-SECTION: POSTGRESQL CREDENTIALS
# -----------------------------------
# -- Default Postgresql DB NAME == plugin_mainnet_db
# -- Maintain the single quotes as these are needed inorder to pass the VARs correctly as the system expects it..
DB_NAME="plugin_mainnet_db"
#DB_PWD_FIND="'postgres'"
DB_PWD_FIND="a4IZE5iFMM14iHJKndgdDtsExQLeiU"
DB_PWD_NEW="testdbpwd1234"
## CONTRACT ADDRESSES
## -------------------------------
testnet_ChainID='51'
testnet_ContractAddress='0x33f4212b027E22aF7e6BA21Fc572843C0D701CD1'
testnet_name='GoPluginApothem'
testnet_wsUrl='wss://ws.apothem.network/ws'
testnet_httpUrl='https://erpc.apothem.network'
mainnet_ChainID='50'
mainnet_ContractAddress='0xFf7412Ea7C8445C46a8254dFB557Ac1E48094391'
mainnet_name='GoPluginMainnet'
mainnet_wsUrl='wss://ws.xinfin.network'
mainnet_httpUrl='https://erpc.xinfin.network'
# -- TLS Certificate
TLS_CERT_PATH="$PLI_DEPLOY_PATH/tls"
# #### SHARED VARIABLES for base_sys_setup.sh & pli_node_scripts.sh scripts ####
# -------------------------------------------------------------------------------
PLI_HTTP_PORT="6688"
PLI_HTTPS_PORT="6689"
# #### VARIABLES for base_sys_setup.sh script ####
# -------------------------------------------------
# -- These are commented out as the script prompts the user during runtime.
# -- The script can be modified to force the use of static variables. This can
# -- be useful if you are deploying a large number of nodes and want to maintain
# -- the same credentials across all nodes.
#VAR_USERNAME=""
#VAR_PASSWORD=""
PLI_SSH_DEF_PORT="22"
PLI_SSH_NEW_PORT="6222"
SSH_CONFIG_PATH="/etc/ssh/sshd_config"