This repo contains various scripts to create and manage suterusu nodes.
To create 3 ec2 instances for suterusu node in the region ap-northeast-1
, run
terraform apply -var instance_count=3 -var aws_region=ap-northeast-1 ec2
This will also copy files under caddy
to ~/.suter/node/
which can be used to set up suter node.
Set up A-records for the newly created instances. This is required for wss access to the node server.
Copy the files under the directory caddy
to the server, and specify the domain for websocket access, with environment variable TLS_DOMAIN
, then run
export TLS_DOMAIN=node.cluster.suterusu.io [email protected] SUTER_NODE_ EXTRA_ARGUMENTS="--bootnodes /dns4/alice.cluster.suterusu.io/tcp/30333/p2p/QmVe2vHDbgpXWTmgpkmG51DeaFTPWxanU2LqzHp7ZHqoTa"
docker-compose up
Compile suter_cli with suter_cli and run
./wsclient.native -url https://node.cluster.suterusu.io -f ./tests/get_runtime_version.sut