发布 QB 5.0 不建议 PT用户升级

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
新疆萌森软件开发工作室 2024-10-12 12:39:19 +08:00
parent de41133c5d
commit cd65e7d70f
6 changed files with 122 additions and 18 deletions

18
.github/renovate.json vendored
View File

@ -93,24 +93,6 @@
"photoprism/photoprism"
],
"versioning": "regex:^(?<major>\\d{2})(?<minor>\\d{2})(?<patch>\\d{2})$"
},
{
"matchDatasources": [
"docker"
],
"matchPackageNames": [
"ghcr.io/umami-software/umami"
],
"versioning": "docker"
},
{
"matchDatasources": [
"docker"
],
"matchPackageNames": [
"ghcr.io/umami-software/*"
],
"versioning": "docker"
}
],
"regexManagers": [

View File

@ -0,0 +1,62 @@
additionalProperties:
formFields:
- default: "host"
edit: true
envKey: NETWORK_MODE
labelZh: 网络模式
labelEn: Network Mode
required: true
type: select
values:
- label: 主机网络模式
value: "host"
- label: 桥接网络模式
value: "bridge"
- label: 无网络模式
value: "none"
- label: 1panel-network
value: "1panel-network"
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI Port
required: true
rule: paramPort
type: number
- default: 6881
edit: true
envKey: PANEL_APP_PORT_TORRENTING
labelZh: Torrenting 端口
labelEn: Torrenting Port
required: true
rule: paramPort
type: number
- default: "/home/qBittorrent"
edit: true
envKey: QBITTORRENT_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: ""
edit: true
envKey: CUSTOM_MOUNT_DIRECTORY_1
labelEn: Custom mount directory 1
labelZh: 自定义挂载目录 1
required: false
type: text
- default: ""
edit: true
envKey: CUSTOM_MOUNT_DIRECTORY_2
labelEn: Custom mount directory 2
labelZh: 自定义挂载目录 2
required: false
type: text
- default: ""
edit: true
envKey: CUSTOM_MOUNT_DIRECTORY_3
labelEn: Custom mount directory 3
labelZh: 自定义挂载目录 3
required: false
type: text

View File

@ -0,0 +1,30 @@
networks:
1panel-network:
external: true
services:
qbittorrent:
image: linuxserver/qbittorrent:5.0.0
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
network_mode: ${NETWORK_MODE}
ports:
- ${PANEL_APP_PORT_HTTP}
- ${PANEL_APP_PORT_TORRENTING}
- ${PANEL_APP_PORT_TORRENTING}/udp
env_file:
- /etc/1panel/envs/global.env
volumes:
- ${QBITTORRENT_ROOT_PATH}/config:/config
- ${QBITTORRENT_ROOT_PATH}/downloads:/downloads
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
environment:
- PUID=0
- PGID=0
- UMASK=022
- WEBUI_PORT=${PANEL_APP_PORT_HTTP}
- TORRENTING_PORT=${PANEL_APP_PORT_TORRENTING}

View File

@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi