|
|
@@ -7,3 +7,24 @@ XZ_OPT=-9 tar -Jcvf /tmp/qbittorrent_$(uname -m)_v4.4.2_lt_v2.0.6.tar.xz qbitto
|
|
|
|
|
|
|
|
|
```
|
|
|
+
|
|
|
+# nginx
|
|
|
+```
|
|
|
+ location /qbt/ {
|
|
|
+ gzip on;
|
|
|
+ if ($request_method !~ "GET|POST") { return 404; }
|
|
|
+ client_max_body_size 32m;
|
|
|
+
|
|
|
+ # access_log /var/log/nginx/access_qbt.log;
|
|
|
+ # error_log /var/log/nginx/error_qbt.log;
|
|
|
+
|
|
|
+ auth_basic "qBittorrent";
|
|
|
+ auth_basic_user_file /etc/nginx/passwd;
|
|
|
+ # echo "admin:$(openssl passwd -quiet adminadmin)" |tee -a /etc/nginx/passwd
|
|
|
+
|
|
|
+ proxy_http_version 1.1;
|
|
|
+ proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
+ proxy_pass http://127.0.0.1:8080/;
|
|
|
+ }
|
|
|
+
|
|
|
+```
|