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
510ae5ad
Commit
510ae5ad
authored
May 22, 2025
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update nftscan
parent
a59cf90b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
112 additions
and
2 deletions
+112
-2
exp.caddy
caddy/root/exp.caddy
+1
-1
docker-compose-ipfs.yml
docker-compose-ipfs.yml
+15
-0
docker-compose-nftscan.yml
docker-compose-nftscan.yml
+55
-0
000-create-database.sql
mysql/init/000-create-database.sql
+1
-1
config.toml
nftscan/config.toml
+40
-0
No files found.
caddy/root/exp.caddy
View file @
510ae5ad
...
...
@@ -39,7 +39,7 @@ cmp20.bitheart.org {
# IPFS代理
handle /ipfs/* {
reverse_proxy http://
3.10.226.191:
8080 {
reverse_proxy http://
172.17.0.1:1
8080 {
header_up Host {host}
header_up X-Forwarded-For {remote}
header_up X-Forwarded-Proto {scheme}
...
...
docker-compose-ipfs.yml
0 → 100644
View file @
510ae5ad
version
:
'
3.1'
services
:
ipfs
:
image
:
ipfs/kubo:v0.34.1
container_name
:
ipfs_host
mem_limit
:
4g
cpus
:
'
4.0'
environment
:
-
GOMEMLIMIT=3800MiB
ports
:
-
"
4001:4001"
-
"
4001:4001/udp"
-
"
127.0.0.1:18080:8080"
-
"
127.0.0.1:15001:5001"
\ No newline at end of file
docker-compose-nftscan.yml
0 → 100644
View file @
510ae5ad
version
:
"
3"
services
:
nftdb
:
container_name
:
"
mysql-nft"
image
:
mysql:8
restart
:
on-failure
environment
:
MYSQL_ROOT_PASSWORD
:
XN2UARuys3zy4Oux
MYSQL_DATABASE
:
nft
volumes
:
-
./nftscan/mysql:/var/lib/mysql
ports
:
-
"
127.0.0.1:53306:3306"
healthcheck
:
test
:
[
"
CMD"
,
"
mysqladmin"
,
"
ping"
,
"
-h"
,
"
localhost"
,
"
-u"
,
"
root"
,
"
-pXN2UARuys3zy4Oux"
]
interval
:
10s
timeout
:
5s
retries
:
5
sync
:
image
:
token-collection:${TAG:-latest}
container_name
:
token-collection
environment
:
-
SYNC=${SYNC:-0}
-
MIGRATE=${MIGRATE:-false}
volumes
:
-
./nftscan/synclogs:/app
-
./nftscan/config.toml:/config.toml
command
:
-
"
/bin/sh"
-
"
-c"
-
"
/usr/bin/sync
-c
/config.toml"
restart
:
unless-stopped
depends_on
:
nftdb
:
condition
:
service_healthy
api
:
image
:
token-collection:${TAG:-latest}
container_name
:
token-collection-api
environment
:
-
MIGRATE=${MIGRATE:-false}
volumes
:
-
./nftscan/apilogs:/app
-
./nftscan/config.toml:/config.toml
command
:
-
"
/bin/sh"
-
"
-c"
-
"
/usr/bin/api
-c
/config.toml"
restart
:
unless-stopped
depends_on
:
nftdb
:
condition
:
service_healthy
\ No newline at end of file
mysql/init/000-create-database.sql
View file @
510ae5ad
use
mysql
;
create
database
tidb_block_browser
;
create
database
tidb_block_browser_user
;
create
database
tidb_block_browser_user
;
\ No newline at end of file
nftscan/config.toml
0 → 100644
View file @
510ae5ad
debug
=
true
# 单次获取数据量
batch_size
=
99
[server]
# api服务监听
listen
=
'
0.0.0.0
:
10256
'
# 停用api服务
disable
=
false
[chain]
# cmpchain rpc
rpc
=
'http://
15.206.56.79
:
28545
'
# cmpchain id
id
=
100
[ipfs]
# ipfs gateway
# http://18.134.246.190:8080/ipfs/QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq/0
# 程序请求ipfs的链接
gateway
=
'http://ipfs_host:
8080
/ipfs/'
# 返回拼接ipfs的链接
gateway_domain
=
'https://cmp
20.
bitheart.org/ipfs/'
[s3]
access_key
=
'AKIAT
2
FHAZL
5
D
6
FPWZZL'
secret_key
=
'SThOV
0
NCAPdfqn
7
SvMACmcrny+
2
vmCzxealT
8
Y
51
'
region
=
'eu-west
-2
'
bucket
=
'cmpnftmeta'
gateway
=
'https://cmpnftmeta.s
3.
eu-west
-2
.amazonaws.com/'
[mysql]
host
=
'mysql-nft'
port
=
3306
user
=
'root'
password
=
'XN
2
UARuys
3
zy
4
Oux'
database
=
'nft'
max_conn
=
20
max_idle_conn
=
10
\ No newline at end of file
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