@@ -18,6 +18,7 @@ services:
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
|
||||
- ${STREAM_REC_ROOT_PATH}/rclone:/root/.config/rclone
|
||||
- ${STREAM_REC_ROOT_PATH}/download:/download
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
|
||||
69
apps/stream-rec/dev/data.yml
Normal file
69
apps/stream-rec/dev/data.yml
Normal file
@@ -0,0 +1,69 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/stream-rec"
|
||||
edit: true
|
||||
envKey: STREAM_REC_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 15275
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 12555
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_API
|
||||
labelZh: API 端口
|
||||
labelEn: API port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "stream-rec"
|
||||
disabled: true
|
||||
envKey: LOGIN_USERNAME
|
||||
labelZh: 默认用户名
|
||||
labelEn: Default Username
|
||||
required: true
|
||||
type: text
|
||||
- default: "stream-rec"
|
||||
edit: false
|
||||
envKey: LOGIN_SECRET
|
||||
labelZh: 登录密码 (初始化)
|
||||
labelEn: Login Password (Initialization)
|
||||
required: true
|
||||
random: true
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: AUTH_SECRET
|
||||
labelZh: 加密密钥
|
||||
labelEn: Encryption Key
|
||||
required: true
|
||||
random: true
|
||||
type: text
|
||||
- default: "http://127.0.0.1:15275"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_BASE_URL
|
||||
labelZh: 访问域名
|
||||
labelEn: Access Domain
|
||||
required: true
|
||||
type: text
|
||||
- default: "ws://127.0.0.1:12555/live/update"
|
||||
edit: true
|
||||
envKey: WS_API_URL
|
||||
labelZh: WebSocket API 地址
|
||||
labelEn: WebSocket API URL
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: HTTP_PROXY
|
||||
labelZh: 网络代理
|
||||
labelEn: Network Proxy
|
||||
required: false
|
||||
type: text
|
||||
49
apps/stream-rec/dev/docker-compose.yml
Normal file
49
apps/stream-rec/dev/docker-compose.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
stream-rec-backend:
|
||||
image: streamrec/stream-rec:dev
|
||||
container_name: ${CONTAINER_NAME}-backend
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_API}:12555
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
|
||||
- ${STREAM_REC_ROOT_PATH}/rclone:/root/.config/rclone
|
||||
- ${STREAM_REC_ROOT_PATH}/download:/download
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- HTTPS_PROXY=${HTTP_PROXY}
|
||||
- LOG_LEVEL=INFO
|
||||
- DB_PATH=/opt/records
|
||||
- DOWNLOAD_PATH=/download
|
||||
- PGID=1000
|
||||
- PUID=1000
|
||||
|
||||
stream-rec-frontend:
|
||||
depends_on:
|
||||
- stream-rec-backend
|
||||
image: streamrec/stream-rec-front:dev
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:15275
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- API_URL=http://stream-rec-backend:12555/api
|
||||
2
apps/stream-rec/dev/envs/default.env
Normal file
2
apps/stream-rec/dev/envs/default.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
2
apps/stream-rec/dev/envs/global.env
Normal file
2
apps/stream-rec/dev/envs/global.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
17
apps/stream-rec/dev/scripts/init.sh
Normal file
17
apps/stream-rec/dev/scripts/init.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
10
apps/stream-rec/dev/scripts/uninstall.sh
Normal file
10
apps/stream-rec/dev/scripts/uninstall.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
17
apps/stream-rec/dev/scripts/upgrade.sh
Normal file
17
apps/stream-rec/dev/scripts/upgrade.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
69
apps/stream-rec/latest/data.yml
Normal file
69
apps/stream-rec/latest/data.yml
Normal file
@@ -0,0 +1,69 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/stream-rec"
|
||||
edit: true
|
||||
envKey: STREAM_REC_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 15275
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 12555
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_API
|
||||
labelZh: API 端口
|
||||
labelEn: API port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "stream-rec"
|
||||
disabled: true
|
||||
envKey: LOGIN_USERNAME
|
||||
labelZh: 默认用户名
|
||||
labelEn: Default Username
|
||||
required: true
|
||||
type: text
|
||||
- default: "stream-rec"
|
||||
edit: false
|
||||
envKey: LOGIN_SECRET
|
||||
labelZh: 登录密码 (初始化)
|
||||
labelEn: Login Password (Initialization)
|
||||
required: true
|
||||
random: true
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: AUTH_SECRET
|
||||
labelZh: 加密密钥
|
||||
labelEn: Encryption Key
|
||||
required: true
|
||||
random: true
|
||||
type: text
|
||||
- default: "http://127.0.0.1:15275"
|
||||
edit: true
|
||||
envKey: NEXT_PUBLIC_BASE_URL
|
||||
labelZh: 访问域名
|
||||
labelEn: Access Domain
|
||||
required: true
|
||||
type: text
|
||||
- default: "ws://127.0.0.1:12555/live/update"
|
||||
edit: true
|
||||
envKey: WS_API_URL
|
||||
labelZh: WebSocket API 地址
|
||||
labelEn: WebSocket API URL
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: HTTP_PROXY
|
||||
labelZh: 网络代理
|
||||
labelEn: Network Proxy
|
||||
required: false
|
||||
type: text
|
||||
49
apps/stream-rec/latest/docker-compose.yml
Normal file
49
apps/stream-rec/latest/docker-compose.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
stream-rec-backend:
|
||||
image: streamrec/stream-rec:latest
|
||||
container_name: ${CONTAINER_NAME}-backend
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_API}:12555
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
|
||||
- ${STREAM_REC_ROOT_PATH}/rclone:/root/.config/rclone
|
||||
- ${STREAM_REC_ROOT_PATH}/download:/download
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- HTTPS_PROXY=${HTTP_PROXY}
|
||||
- LOG_LEVEL=INFO
|
||||
- DB_PATH=/opt/records
|
||||
- DOWNLOAD_PATH=/download
|
||||
- PGID=1000
|
||||
- PUID=1000
|
||||
|
||||
stream-rec-frontend:
|
||||
depends_on:
|
||||
- stream-rec-backend
|
||||
image: streamrec/stream-rec-front:latest
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:15275
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- API_URL=http://stream-rec-backend:12555/api
|
||||
2
apps/stream-rec/latest/envs/default.env
Normal file
2
apps/stream-rec/latest/envs/default.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
2
apps/stream-rec/latest/envs/global.env
Normal file
2
apps/stream-rec/latest/envs/global.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
17
apps/stream-rec/latest/scripts/init.sh
Normal file
17
apps/stream-rec/latest/scripts/init.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
10
apps/stream-rec/latest/scripts/uninstall.sh
Normal file
10
apps/stream-rec/latest/scripts/uninstall.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
17
apps/stream-rec/latest/scripts/upgrade.sh
Normal file
17
apps/stream-rec/latest/scripts/upgrade.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -18,6 +18,7 @@ services:
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${STREAM_REC_ROOT_PATH}/records:/opt/records
|
||||
- ${STREAM_REC_ROOT_PATH}/rclone:/root/.config/rclone
|
||||
- ${STREAM_REC_ROOT_PATH}/download:/download
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
|
||||
Reference in New Issue
Block a user