first commit with existing files

This commit is contained in:
2025-05-17 13:08:39 +02:00
commit cda37be691
29 changed files with 617 additions and 0 deletions

15
qbithttps/files/https.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
mkdir /config/qBittorrent/cert/
cd /config/qBittorrent/cert/
echo ""
echo ""
echo "Write the nextcloud's URL to the COMMON NAME!"
echo "Leave the other fields blank"
echo ""
echo -n "Press ENTER to countinue..."
read x
openssl req -new -x509 -nodes -out server.crt -keyout server.key
sed -i "s/'WebUI\HTTPS\CertificatePath=.*'/'WebUI\HTTPS\CertificatePath=/config/qBittorrent/cert/server.crt'/g" /config/qBittorrent/qBittorrent.conf
sed -i "s/'WebUI\HTTPS\KeyPath=.*'/'WebUI\HTTPS\KeyPath=/config/qBittorrent/cert/server.key'/g" /config/qBittorrent/qBittorrent.conf
sed -i "s/'WebUI\HTTPS\Enabled=false'/'WebUI\HTTPS\Enabled=true'/g" /config/qBittorrent/qBittorrent.conf

21
qbithttps/update.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
cd "$(dirname "$0")"
echo "Containers: "
sudo docker ps --format '{{.Names}}'
echo ""
echo -n "Container name: "
read cont
sudo docker exec -ti $cont mkdir /https/
sudo docker cp "./files/https.sh" $cont:/https/
sudo docker exec -ti $cont /bin/bash /https/https.sh
sudo docker restart $cont