How to create Public RPC Alignedlayer
Firstly, you need the full or validator node installed and synchronized.
Modifying the config file in the directory $HOME/.alignedlayerd/config/config.toml
You can use the default, then it will look like this:
And restart your node.
You buy a domain for yourself (for example, Namecheap). Create 2 rules: 1) In the A Record, write the IP address of the server on which the node is located. 2) In the CNAME record, write your domain name, which you purchased). Then, on the server with the node, install Caddy and, in its configuration, enter your domain and configure reverse proxy to 127.0.0.1:26657.
Edit Caddy config:
:80 replace with your DNS address. reverse_proxy set the local address to 127.0.0.1:26657.
Example:
Reload Caddy:
Everything is ready. It remains to wait until your domain is visible to everyone on the internet (you can check it here: dnschecker.org).
Last updated