Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Cannot connect the archiver to a local devnet #26

Open
saadahmsiddiqui opened this issue Sep 2, 2022 · 3 comments
Open

Cannot connect the archiver to a local devnet #26

saadahmsiddiqui opened this issue Sep 2, 2022 · 3 comments

Comments

@saadahmsiddiqui
Copy link

saadahmsiddiqui commented Sep 2, 2022

Enable ws connections

@tmcgroul
Copy link
Contributor

tmcgroul commented Sep 2, 2022

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

environment:
  NODE_TLS_REJECT_UNAUTHORIZED: 0

@saadahmsiddiqui
Copy link
Author

@tmcgroul can we have a local substrate devnet archiver?

@tmcgroul
Copy link
Contributor

tmcgroul commented Sep 4, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants