# Setting-up Caddy Reverse Proxy First of all, add the repo. and then install caddy: ``` sudo yum install yum-plugin-coprs sudo yum copr enable @caddy/caddy sudo yum install caddy ``` ### Open ports in Firewall-Cmd: ``` sudo firewall-cmd --zone=public --permanent --add-port 80/tcp || true sudo firewall-cmd --zone=public --permanent --add-port 443/tcp || true sudo firewall-cmd --reload || true ``` ### Changes in Caddyfile: Open Caddy configuration file at location: ``` sudo nano /etc/caddy/Caddyfile # Add domain name in place of :80 rpc-osmosis.validatus.com # Comment the line: root * /usr/share/caddy # and add the line: reverse_proxy localhost:2001 ``` Save the file and use following command to set permissions: ``` sudo chown -R root:caddy /etc/caddy ``` Restart caddy server, it will automatically request an SSL certificate for the domain. ``` sudo systemctl restart caddy.service ```