Commit 510ae5ad authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update nftscan

parent a59cf90b
......@@ -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:18080 {
header_up Host {host}
header_up X-Forwarded-For {remote}
header_up X-Forwarded-Proto {scheme}
......
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
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
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
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://cmp20.bitheart.org/ipfs/'
[s3]
access_key = 'AKIAT2FHAZL5D6FPWZZL'
secret_key = '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'
region = 'eu-west-2'
bucket = 'cmpnftmeta'
gateway = 'https://cmpnftmeta.s3.eu-west-2.amazonaws.com/'
[mysql]
host = 'mysql-nft'
port = 3306
user = 'root'
password = 'XN2UARuys3zy4Oux'
database = 'nft'
max_conn = 20
max_idle_conn = 10
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment