subsquid/substrate-archive-setup

Cannot connect the archiver to a local devnet

Opened this issue · 3 comments

Enable ws connections

ws protocol is supported
you can disable tls verification by a single env variable

environment:
  NODE_TLS_REJECT_UNAUTHORIZED: 0

@tmcgroul can we have a local substrate devnet archiver?

sure! you can use docker-compose.yml
and redifine this part - https://github.com/subsquid/squid-archive-setup/blob/main/docker-compose.yml#L17-L30
to:

command: [
    "-e", "ws://127.0.0.1:9944",
    "--out", "postgres://postgres:postgres@db:5432/squid-archive"
]
environment:
  NODE_TLS_REJECT_UNAUTHORIZED: 0