发布 stream-rec

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
Meng Sen
2025-06-04 16:00:42 +08:00
parent 24bc38f60d
commit c4831e2705
16 changed files with 334 additions and 0 deletions

View File

@@ -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

View 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

View 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

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai

View 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

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,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

View 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

View 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

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai

View 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

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,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

View File

@@ -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