Easy HTTPS with Caddy server

Do you want to set up a domain for the bot, but your knowledge of nginx is not great? No problem! You can use a Caddy server with almost zero setups and you get https, websockets for your sogeBot!

Prerequisites

  1. Installed Caddy
  2. Domain pointed to your server

Configuration

After instalattion of Caddy, edit located file: /etc/caddy/Caddyfile

And fill it out with this kind of content:

yourdomain.com {
  reverse_proxy 127.0.0.1:20000
}

Replace yourdomain.com, restart your caddy server via sudo service caddy restart or sudo systemctl restart caddy and that’s it!

1 Like