# Connext Router Setup **Published by:** [cyberG|DVS](https://paragraph.com/@cyberg/) **Published on:** 2022-05-15 **URL:** https://paragraph.com/@cyberg/connext-router-setup ## Content https://www.connext.network/Connext router node setup for Connext Contributor Program Official documents:Spinning Up a RouterMinimum Hardware Requirements:8GB RAM30GB StorageRedisUpdate packagessudo apt update && sudo apt upgrade -y Install dockersudo apt-get install ca-certificates curl gnupg lsb-release -y curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io -y Install docker composemkdir -p ~/.docker/cli-plugins/ curl -SL https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose chmod +x ~/.docker/cli-plugins/docker-compose sudo chown $USER /var/run/docker.sock Cloning the Repositorycd ~ git clone https://github.com/connext/nxtp-router-docker-compose.git cd nxtp-router-docker-compose git checkout amarok Environment ConfigCreate a .env file in the root directory of the repository based on the env.example file. Modify the following environment variables:ROUTER_VERSION - The version of the router to use (e.g. v0.1.0). See the releases page for the latest released version.ROUTER_EXTERNAL_PORT - Exposed port of the router. Remember to not expose this port to the public.GRAFANA_EXTERNAL_PORT - Exposed port of the Grafana dashboard.LOGDNA_KEY - This key is used by logna container. You can get this key by sign up herhttps://www.logdna.com/Use this commands for preparing your .env filemv .env.example .env nano .env Verify your .env file################################################################################ General configuration ROUTER_VERSION=0.2.0-alpha.10 ROUTER_EXTERNAL_PORT=8000 GRAFANA_EXTERNAL_PORT=3008 WEB3SIGNER_HTTP_LISTEN_PORT=9000 ################################################################################ Monitoring configuration LOGDNA_KEY= LOGDNA_TAG= DISCORD_WEBHOOK= Create Router ConfigCreate a config.json file based on the config.example.json file. At minumum, change the following values:sequencerUrl - The URL of the Sequencer node.redis - The Redis instance to use.server - Internal HTTP server config (adminToken).chains - Add your desired chains, assets, and provider URLs. Use domain mappings instead of chainIds. For more domain ids of chains, please check https://raw.githubusercontent.com/connext/chaindata/main/crossChain.json . Make sure you use multiple providers for each chain! Example with the current testnet assets:nano ~/nxtp-router-docker-compose/config.json { "chains": { "1111": { "assets": [ { "address": "0xB7b1d3cC52E658922b2aF00c5729001ceA98142C", "name": "TEST" } ], "providers": ["https://eth-rinkeby.alchemyapi.io/v2/Bi4KoxT0rgjHsmVvMRtdY_9rwrTsdY2h", "https://rpc.ankr.com/eth_rinkeby"] }, "2221": { "assets": [ { "address": "0xB5AabB55385bfBe31D627E2A717a7B189ddA4F8F", "name": "TEST" } ], "providers": ["https://eth-kovan.alchemyapi.io/v2/eEcEgHdAt3fkZkRmzbaI-Sv_1Gw6OxrB"] } }, "logLevel": "debug", "mnemonic": "", "sequencerUrl": "https://sequencer.testnet.connext.ninja", "server": { "adminToken": "blahblahblah" }, "environment": "production" } Redis ConfigThe router uses an internal Redis instance in Docker by default. However, if you prefer to use your external Redis instance, you can set the corresponding host and port field in config.json. Instructions can be found on the Redis website.Web3Signer ConfigSet up Web3Signer config files to set the private key securely. Fill the private key of your signer to key.example.yaml.mv key.example.yaml key.yaml nano ~/nxtp-router-docker-compose/key.yaml Add your private key to to key.yaml.type: "file-raw" keyType: "SECP256K1" privateKey: "c41a12b71d297b7bea5be41f4b752" Create docker-compose servicecd ~/nxtp-router-docker-compose docker-compose create Run docker-composedocker-compose up -d Check the logsdocker logs --follow --tail 100 router Restart docker-compose servicedocker-compose restart Update VersionModify .env to change NXTP_VERSIONUpdate stackdocker-compose pull docker-compose up -d Claim test tokensVisit faucet and claim TEST tokens: https://amarok-testnet.coinhippo.io/Add LiquidityPaste your router address to the linkhttps://testnet.amarok.connextscan.io/router/<your router address> Click “Manage Router” and add your liquidityCongratulation! You started Connext Router! ## Publication Information - [cyberG|DVS](https://paragraph.com/@cyberg/): Publication homepage - [All Posts](https://paragraph.com/@cyberg/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@cyberg): Subscribe to updates - [Twitter](https://twitter.com/vadyhodler777): Follow on Twitter