精简提交历史记录
This commit is contained in:
7
apps/xunlei/latest/.env.sample
Normal file
7
apps/xunlei/latest/.env.sample
Normal file
@@ -0,0 +1,7 @@
|
||||
CONTAINER_NAME="xunlei"
|
||||
PANEL_APP_PORT_HTTP="40163"
|
||||
DATA_PATH="./data/data"
|
||||
MOUNT_PATH="./data/downloads"
|
||||
HOSTNAME="mynas"
|
||||
HTTP_USER="user"
|
||||
HTTP_PWD="xunlei_password"
|
||||
47
apps/xunlei/latest/data.yml
Normal file
47
apps/xunlei/latest/data.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40163
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data/data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: ./data/downloads
|
||||
edit: true
|
||||
envKey: DOWNLOAD_PATH
|
||||
labelEn: Download folder path
|
||||
labelZh: 下载文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: mynas
|
||||
edit: true
|
||||
envKey: HOSTNAME
|
||||
labelEn: hostname
|
||||
labelZh: 主机名
|
||||
required: true
|
||||
type: text
|
||||
- default: user
|
||||
edit: true
|
||||
envKey: HTTP_USER
|
||||
labelEn: http auth user
|
||||
labelZh: HTTP 用户
|
||||
required: true
|
||||
type: text
|
||||
- default: xunlei
|
||||
edit: true
|
||||
envKey: HTTP_PWD
|
||||
labelEn: http auth password
|
||||
labelZh: HTTP 密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
28
apps/xunlei/latest/docker-compose.yml
Normal file
28
apps/xunlei/latest/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
version: '3'
|
||||
services:
|
||||
xunlei:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
|
||||
volumes:
|
||||
- "${DATA_PATH}:/xunlei/data"
|
||||
- "${DOWNLOAD_PATH}:/xunlei/downloads"
|
||||
environment:
|
||||
- UID=1000
|
||||
- GID=1000
|
||||
- XL_DEBUG=0
|
||||
- XL_WEB_PORT=${PANEL_APP_PORT_HTTP}
|
||||
- XL_BA_USER=${HTTP_USER}
|
||||
- XL_BA_PASSWORD=${HTTP_PWD}
|
||||
hostname: ${HOSTNAME}
|
||||
privileged: true
|
||||
image: cnk3x/xunlei:latest
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user