Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
explorer-deploy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
explorer-for-cmp20
explorer-deploy
Commits
9a135de5
Commit
9a135de5
authored
May 23, 2025
by
EC2 Default User
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add variable
parent
a648291e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
21 deletions
+29
-21
config.yml
blockscan/config.yml
+3
-3
db.env
db.env
+2
-0
docker-compose.yml
docker-compose.yml
+1
-1
app.conf
expservice/app.conf
+14
-14
redis.conf
redis/conf/redis.conf
+1
-1
start.sh
start.sh
+8
-2
No files found.
blockscan/config.yml
View file @
9a135de5
appname
:
blockScan1
appname
:
blockScan1
redis
:
redis
:
ip
:
172.17.0.1
ip
:
expredis
port
:
6379
port
:
6379
password
:
123456
password
:
{{
REDISPASSWORD
}}
chain
:
chain
:
url
:
http://172.17.0.1:28545
url
:
{{
CHAINURL
}}
db.env
View file @
9a135de5
MYSQL_ROOT_PASSWORD=bXlzcWw=
MYSQL_ROOT_PASSWORD=bXlzcWw=
TZ=Asia/Shanghai
TZ=Asia/Shanghai
CHAIN_URL=http://172.17.0.1:28545
REDIS_PASS=123456
REDIS_PASS=123456
docker-compose.yml
View file @
9a135de5
expservice/app.conf
View file @
9a135de5
...
@@ -30,7 +30,7 @@ nftUrl = http://172.17.0.1:10256
...
@@ -30,7 +30,7 @@ nftUrl = http://172.17.0.1:10256
#====================================================================================
#====================================================================================
# 节点访问地址
# 节点访问地址
chainUrl
=
"
http://172.17.0.1:28545
"
chainUrl
=
"
{{CHAINURL}}
"
#>>>>>>>>>>>>>>>开始分页配置>>>>>>>>>>>>>>>>>>>>>>>>>>>
#>>>>>>>>>>>>>>>开始分页配置>>>>>>>>>>>>>>>>>>>>>>>>>>>
[
pagination
]
[
pagination
]
...
@@ -79,27 +79,27 @@ MarketPriceSyncFlag = 0
...
@@ -79,27 +79,27 @@ MarketPriceSyncFlag = 0
#数据库
#数据库
[
mysql
]
[
mysql
]
#主机
#主机
dbhost
=
172
.
17
.
0
.
1
dbhost
=
expmysql
#端口
#端口
dbport
=
3306
dbport
=
3306
#用户名
#用户名
dbuser
=
"root"
dbuser
=
"root"
#密码
#密码
dbpassword
=
"
bXlzcWw=
"
dbpassword
=
"
{{MYSQLPASS}}
"
#数据库名称
#数据库名称
dbname
=
"tidb_block_browser"
dbname
=
"tidb_block_browser"
# 用户模块数据库
# 用户模块数据库
userdbhost
=
172
.
17
.
0
.
1
userdbhost
=
expmysql
userdbport
=
3306
userdbport
=
3306
userdbuser
=
"root"
userdbuser
=
"root"
userdbpassword
=
"
bXlzcWw=
"
userdbpassword
=
"
{{MYSQLPASS}}
"
userdbname
=
"tidb_block_browser_user"
userdbname
=
"tidb_block_browser_user"
[
Redis
]
[
Redis
]
ip
=
172
.
17
.
0
.
1
ip
=
expredis
port
=
6379
port
=
6379
password
=
"
123456
"
password
=
"
{{REDISPASSWORD}}
"
#====================================================================================
#====================================================================================
[
jwt
]
[
jwt
]
...
@@ -110,15 +110,15 @@ appexpiretime = 300
...
@@ -110,15 +110,15 @@ appexpiretime = 300
[
email
]
[
email
]
#邮件服务器
#邮件服务器
host
=
"
smtp.gmail.com
"
host
=
"
mail.bitheart.io
"
#服务端口
#服务端口
port
=
465
port
=
465
#发件人昵称
#发件人昵称
senderName
=
"noreply"
senderName
=
"noreply"
#发件人用户名
#发件人用户名
user
=
"s
ervice@cmpscan
.io"
user
=
"s
can@bitheart
.io"
#发件人密码
#发件人密码
password
=
"
nsgonwihymyvbyeg
"
password
=
"
TestPassword2024
"
#邮箱验证码有效时间(s)
#邮箱验证码有效时间(s)
#expireTime = 600
#expireTime = 600
#邮件发送频率间隔(s)
#邮件发送频率间隔(s)
...
@@ -197,10 +197,10 @@ expire = 3600
...
@@ -197,10 +197,10 @@ expire = 3600
[
Monitor
]
[
Monitor
]
# 节点高度监控模块
# 节点高度监控模块
enable
=
false
enable
=
false
host
=
"
smtp.163.com
"
host
=
"
mail.bitheart.io
"
port
=
465
port
=
465
user
=
"
mozik188@163.com
"
user
=
"
scan@bitheart.io
"
password
=
"
NZLCFPICPZTKWXBL
"
password
=
"
TestPassword2024
"
# 发送统计邮件间隔, 单位分钟
# 发送统计邮件间隔, 单位分钟
statisticalInterval
=
30
statisticalInterval
=
30
# 高度阈值, 某节点高度与最高节点相差heightThreshold时发送邮件
# 高度阈值, 某节点高度与最高节点相差heightThreshold时发送邮件
...
@@ -208,4 +208,4 @@ heightThreshold = 20
...
@@ -208,4 +208,4 @@ heightThreshold = 20
# 收件人,可多个,使用分号分割,必须写在一行 "a@qq.com;b@qq.com"
# 收件人,可多个,使用分号分割,必须写在一行 "a@qq.com;b@qq.com"
receivers
=
"west.side@qq.com"
receivers
=
"west.side@qq.com"
# 监控的节点,使用分号分割,必须写在一行 "http://a.eth;http://b.eth"
# 监控的节点,使用分号分割,必须写在一行 "http://a.eth;http://b.eth"
nodes
=
"
http://172.17.0.1:28545
"
nodes
=
"
{{CHAINURL}}
"
redis/conf/redis.conf
View file @
9a135de5
requirepass
123456
requirepass
{{
REDISPASSWORD
}}
protected
-
mode
no
protected
-
mode
no
port
6379
port
6379
...
...
start.sh
View file @
9a135de5
#!/bin/bash
#!/bin/bash
source
db.env
source
db.env
sed
-i
"/^requirepass.*
$/
c requirepass
$REDIS_PASS
"
./redis/conf/redis.conf
# replace all {{REDISPASSWORD}} to $REDIS_PASS
docker compose
-f
docker-compose.yml up
-d
find ./
-type
f
-exec
sed
-i
"s/{{REDISPASSWORD}}/
$REDIS_PASS
/g"
{}
\;
# replace all {{CHAINURL}} to $CHAIN_URL
find ./
-type
f
-exec
sed
-i
"s/{{CHAINURL}}/
$CHAIN_URL
/g"
{}
\;
# rplace all {{MYSQLPASS}} to $MYSQL_ROOT_PASSWORD
find ./
-type
f
-exec
sed
-i
"s/{{MYSQLPASS}}/
$MYSQL_ROOT_PASSWORD
/g"
{}
\;
#docker compose -f docker-compose.yml up -d
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment