CzBiX / qb-web

A qBittorrent Web UI, write in TypeScript+Vue.
GNU General Public License v3.0
1.71k stars 137 forks source link

[Share] Caddy2 available multi-WebUI config file #119

Closed mnixry closed 2 years ago

mnixry commented 2 years ago

Related: #29

Caddy provides some awesome features such as automatic SSL, I prefer to use that in this case.

I'd like to share my config file here.

With this config file, you can:

[your-domain] {
        route /classic/* {
                uri strip_prefix /classic
                reverse_proxy localhost:8080
        }
        route /* {
                reverse_proxy /api/* localhost:8080
                root * /var/www/qb-web
                file_server
        }
        encode gzip
}

I hope this tip can be added into wiki, any further question and improvement suggestions is welcomed.