Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-07-28 04:07:05 +00:00
parent d60e8c6547
commit 95a03d00b9
41 changed files with 634 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
# 网络模式 [必填]
NETWORK_MODE=1panel-network
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=8080
# 访问令牌 [必填]
TOKEN=
# 请求超时时间 [必填]
REQUEST_TIMEOUT=1m
# 网络代理 (HTTP/Socket5)
HTTP_PROXY=
@@ -0,0 +1,47 @@
additionalProperties:
formFields:
- default: "1panel-network"
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: ""
edit: true
envKey: TOKEN
labelZh: 访问令牌
labelEn: Access Token
required: true
type: password
- default: "1m"
edit: true
envKey: REQUEST_TIMEOUT
labelZh: 请求超时时间
labelEn: Request Timeout
required: true
type: text
- default: ""
edit: true
envKey: HTTP_PROXY
labelZh: 网络代理 (HTTP/Socket5)
labelEn: Network Proxy (HTTP/Socket5)
required: false
type: text
@@ -0,0 +1,20 @@
networks:
1panel-network:
external: true
services:
metatube-server:
container_name: metatube-server-memory
env_file:
- ./envs/global.env
- .env
environment:
- HTTPS_PROXY=${HTTP_PROXY}
- DB_AUTO_MIGRATE=true
- PORT=${PANEL_APP_PORT_HTTP}
image: ghcr.io/metatube-community/metatube-server:1.3.1
labels:
createdBy: Apps
network_mode: ${NETWORK_MODE}
ports:
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
restart: always
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
@@ -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
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
@@ -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