forked from inv4fee2020/pli_node_conf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.vars
101 lines (63 loc) · 2.66 KB
/
sample.vars
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
# 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)
BASE_SYS_PACKAGES=(net-tools git curl nano locate ufw whois htop)
BASH_FILE1="1_prerequisite.bash"
BASH_FILE2="2_nodeStartPM2.sh"
BASH_FILE3="3_initiatorStartPM2.sh"
PLI_BASE_DIR="$HOME"
PLI_DEPLOY_DIR="plugin-deployment"
PLI_DEPLOY_PATH="$PLI_BASE_DIR/$PLI_DEPLOY_DIR"
# -- .env.password == keystore (STRONG PASSWORD !!)
# -- .env.apicred == Local Jobs Web Server credentials
FILE_API=".env.apicred"
FILE_KEYSTORE=".env.password"
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_NEW="testdbpwd1234"
# SUB-SECTION: EXTERNAL INITIATOR
# -------------------------------
PLI_INITOR_DIR="external-Initiator"
PLI_L_INIT_NAME="xdc"
PLI_E_INIT_NAME="xinfin-mainnet"
PLI_INIT_RAWFILE="pli_init.raw"
PLI_INIT_DATFILE="pli_init.dat"
# -- TLS Certificate
TLS_CERT_PATH="/$PLI_DEPLOY_PATH/Plugin/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"