Apache install
See #1595
Simply create a .htaccess
file in the public
folder:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(api.*)$ http://localhost:WEBUI_PORT/$1 [P,L]
NGINX install
You can use NGINX reverse proxy to use VueTorrent, without making any change to qBittorrent.
Simply download and unzip the folder to a location (/opt
here) and paste this code into your NGINX config file.
server {
server_name vue.torrent;
location / {
root /opt/vuetorrent/public/;
}
location /api {
proxy_pass http://127.0.0.1:WEBUI_PORT;
http2_push_preload on;
client_max_body_size 10M;
}
}
NGINX install for older QBit versions (not guaranteed to work)
server {
listen 80;
server_name mydomain.com;
location / {
root /path/to/vuetorrent/public;
}
location /api {
include proxy_params;
proxy_pass http://localhost:WEBUI_PORT;
}
}
Caddy install
handle /vue* {
redir /vue /vue/
uri strip_prefix /vue
handle /api* {
reverse_proxy * localhost:{$QBIT_WEBUI_PORT}
}
root * /workdir/vuetorrent/public
file_server
}