The original post: /r/seedboxes by /u/streetf22 on 2025-01-15 20:49:19.

Hi, I’m trying to apply home-server, I’ve used this guide. How can I add qBittorent to the list? I’ve downloaded it and I can access it via server-ip:port, but I’m not sure how to add it to caddy. Here is the CaddyFile I’m using:

{{
  default_sni <mydomain.com>
  email <xxx@gmail.com>
  security {
    local identity store localdb {
      realm local
      path /etc/caddy/auth/local/users.json
    }
    authentication portal myportal {
      enable identity store localdb
      ui {
        links {
          "ruTorrent" /rutorrent
    "qBittorrent" /qbittorrent
          "Resillio Sync" /sync
          "Tautulli" /tautulli
          "User Dashboard" auth/profile/ icon "las la-cog"
        }
      }
    }
    authorization policy admin_policy {
      set user identity subject
      allow roles authp/admin
    }
  }
}

https://<mydomain.com> {
  root * /var/www
  file_server
  header Cache-Control "no-cache"
  php_fastcgi unix//run/php/php8.3-fpm.sock

  route /auth* {
    authenticate with myportal
  }

  @protected not path /favicon.ico /public* /tautulli/api* /qbittorrent*
  route @protected {
    authorize with admin_policy
  }

  redir / /auth/portal 

  @logout path_regexp /logout$
  rewrite @logout /auth/logout

  @restricted path_regexp /\.(git|htaccess)|/rutorrent/(conf|share)
  respond @restricted 404

  reverse_proxy /tautulli* 127.0.0.1:<tautulli-port>
  reverse_proxy /qbittorrent/* 127.0.0.1:<qbittorrent-port>

  @rslsync path /sync* /gui*
  route @rslsync {
    authorize with admin_policy
    redir /sync /sync/
    uri replace /sync/ /gui/
    reverse_proxy 127.0.0.1:<sync-port>
  }
}

#https://requests.<mydomain.com> {
#  reverse_proxy 127.0.0.1:<requests-port>
#}

http://localhost {
  root * /var/www
  file_server
  php_fastcgi unix//run/php/php8.3-fpm.sock
}

http://<mydomain.com> {
  handle /public* {
    root * /var/www
    file_server
    php_fastcgi unix//run/php/php8.3-fpm.sock
  }

  handle {
    redir https://{host}{uri}
  }
}

  default_sni <mydomain.com>
  email <xxx@gmail.com>
  security {
    local identity store localdb {
      realm local
      path /etc/caddy/auth/local/users.json
    }
    authentication portal myportal {
      enable identity store localdb
      ui {
        links {
          "ruTorrent" /rutorrent
    "qBittorrent" /qbittorrent
          "Resillio Sync" /sync
          "Tautulli" /tautulli
          "User Dashboard" auth/profile/ icon "las la-cog"
        }
      }
    }
    authorization policy admin_policy {
      set user identity subject
      allow roles authp/admin
    }
  }
}

https://<mydomain.com> {
  root * /var/www
  file_server
  header Cache-Control "no-cache"
  php_fastcgi unix//run/php/php8.3-fpm.sock

  route /auth* {
    authenticate with myportal
  }

  @protected not path /favicon.ico /public* /tautulli/api* /qbittorrent*
  route @protected {
    authorize with admin_policy
  }

  redir / /auth/portal 

  @logout path_regexp /logout$
  rewrite @logout /auth/logout

  @restricted path_regexp /\.(git|htaccess)|/rutorrent/(conf|share)
  respond @restricted 404

  reverse_proxy /tautulli* 127.0.0.1:<tautulli-port>
  reverse_proxy /qbittorrent/* 127.0.0.1:<qbittorrent-port>

  @rslsync path /sync* /gui*
  route @rslsync {
    authorize with admin_policy
    redir /sync /sync/
    uri replace /sync/ /gui/
    reverse_proxy 127.0.0.1:<sync-port>
  }
}

#https://requests.<mydomain.com> {
#  reverse_proxy 127.0.0.1:<requests-port>
#}

http://localhost {
  root * /var/www
  file_server
  php_fastcgi unix//run/php/php8.3-fpm.sock
}

http://<mydomain.com> {
  handle /public* {
    root * /var/www
    file_server
    php_fastcgi unix//run/php/php8.3-fpm.sock
  }

  handle {
    redir https://{host}{uri}
  }
}

I’ve changed all my ports and domain to.

What am I doin wrong?