ipfs

https://www.fil.club/view/77.html 端口8080是HTTP网关,它允许您使用浏览器查询ipfs数据(请参阅此示例) 端口4001是IPFS用于与其他节点通信的群集端口,端口5001用于本地API。 我们5001只会绑定127.0.0.1因为它不应该暴露给外界。 我们已经安装了数据和分段卷。 该data卷用于存储IPFS本地存储(配置和数据库),并且 staging是一个可用于暂存文件以供命令行使用的目录(例如ipfs add)。 如果您只使用API,则可以省略暂存目录卷。当然,随意将这些目录放在除了之外的其他地方/tmp。

繼續閱讀

ethereum explorer

https://github.com/gobitfly/etherchain-light https://github.com/gobitfly/erc20-explorer https://github.com/carsenk/explorer https://github.com/Capgemini-AIE/ethereum-docker/tree/master/monitored-geth-client https://github.com/cubedro/eth-net-intelligence-api https://github.com/cubedro/eth-netstats Browse blocks and transactions It’s nice to have some simple analogue of Etherscan for your local chain browsing. It will be useful to examine transactions, balances, blocks and etc. It appeared that it is quite difficult to find an open-source good solution for geth. After several tries I found an acceptable solution called ETHExplorer V2. Clone it into explorer-v2 folder. To Dockerize it I had to make 2 changes.

繼續閱讀

nestjs csrf

https://gitissue.com/repos/jiayisheji/blog pass csrf https://github.com/expressjs/csurf/issues/21 main.ts import { NestFactory } from '@nestjs/core'; import { NestExpressApplication } from '@nestjs/platform-express'; import { join } from 'path' import { AppModule } from './app.module'; import * as cookieSession from 'cookie-session'; import * as helmet from 'helmet'; import * as cookieParser from 'cookie-parser'; import * as csurf from 'csurf'; import * as rateLimit from 'express-rate-limit'; async function bootstrap() { const app = await NestFactory.create( AppModule, ); app.

繼續閱讀

作者的圖片

Sue boy

Sueboy Can support You

CIO

Taiwan