Open heavenbean opened 5 months ago
NEXT_PUBLIC_API_HOST=scan.plasmatools.xyz
NEXT_PUBLIC_API_PROTOCOL=https
NEXT_PUBLIC_STATS_API_HOST=https://scan.plasmatools.xyz:2053
NEXT_PUBLIC_NETWORK_NAME=Plasma Chain
NEXT_PUBLIC_NETWORK_SHORT_NAME=Plasma Chain
NEXT_PUBLIC_NETWORK_ID=5
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=PLM
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=PLM
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18
NEXT_PUBLIC_API_BASE_PATH=/
NEXT_PUBLIC_APP_HOST=scan.plasmatools.xyz
NEXT_PUBLIC_APP_PROTOCOL=https
NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs']
NEXT_PUBLIC_VISUALIZE_API_HOST=https://scan.plasmatools.xyz:2083
NEXT_PUBLIC_IS_TESTNET=true
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL=wss
NEXT_PUBLIC_API_SPEC_URL=https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml
NEXT_PUBLIC_AD_BANNER_PROVIDER=none
NEXT_PUBLIC_AD_TEXT_PROVIDER=none
NEXT_PUBLIC_FOOTER_LINKS=https://c9496085881e4de3ab34f145eb1b9a78.api.mockbin.io/
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name scan.plasmatools.xyz;
ssl_certificate /etc/letsencrypt/live/scan.plasmatools.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/scan.plasmatools.xyz/privkey.pem;
location / {
add_header 'Access-Control-Allow-Origin' "*";
proxy_pass http://127.0.0.1:80;
}
}
server {
listen 2053 ssl;
listen [::]:2053 ssl;
server_name scan.plasmatools.xyz;
ssl_certificate /etc/letsencrypt/live/scan.plasmatools.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/scan.plasmatools.xyz/privkey.pem;
location / {
add_header 'Access-Control-Allow-Origin' "*";
proxy_pass http://127.0.0.1:8080;
}
}
server {
listen 2083 ssl;
listen [::]:2083 ssl;
server_name scan.plasmatools.xyz;
ssl_certificate /etc/letsencrypt/live/scan.plasmatools.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/scan.plasmatools.xyz/privkey.pem;
location / {
add_header 'Access-Control-Allow-Origin' "*";
proxy_pass http://127.0.0.1:8081;
}
}
Build backend
Export container
Copy to server via scp
Import container on server
Build frontend
docker run -p 3000:3000 --env-file .env local-blockscout-fe:latest
Run them all
docker-compose.yml
file with following content