1
0

Merge QYG2297248353/appstore-1panel into pooneyy/1Panel-Appstore

This commit is contained in:
pooneyy
2025-06-14 16:56:25 +08:00
1733 changed files with 48687 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
additionalProperties:
formFields:
- default: "/home/nginx-ui"
edit: true
envKey: NGINX_UI_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 80
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: Web UI 端口
labelEn: Web UI Port
required: true
rule: paramPort
type: number
- default: 443
edit: true
envKey: PANEL_APP_PORT_HTTPS
labelZh: Web UI 端口 (HTTPS)
labelEn: Web UI Port (HTTPS)
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: ADMINMAIL
labelZh: 管理员邮箱
labelEn: Admin Email
required: true
type: text
- default: ""
edit: true
envKey: ADMINPASS
labelZh: 管理员密码
labelEn: Admin Password
required: true
type: password
- default: ""
edit: true
envKey: NGINX_UI_SERVER_JWT_SECRET
labelZh: JWT 密钥盐
labelEn: JWT Secret Salt
required: true
type: password
- default: "https://mirror.ghproxy.com/"
edit: true
envKey: NGINX_UI_SERVER_GITHUB_PROXY
labelZh: GitHub 代理地址
labelEn: GitHub Proxy
required: false
type: text
- default: "Nginx UI"
edit: true
envKey: NGINX_UI_SERVER_NAME
labelZh: Nginx UI 显示标题
labelEn: Nginx UI Display Title
required: true
type: text
- default: ""
edit: true
envKey: NGINX_UI_PREDEFINED_USER_NAME
labelZh: 预设用户名
labelEn: Predefined Username
required: false
type: text
- default: ""
edit: true
envKey: NGINX_UI_PREDEFINED_USER_PASSWORD
labelZh: 预设密码
labelEn: Predefined Password
required: false
type: text

View File

@@ -0,0 +1,36 @@
networks:
1panel-network:
external: true
services:
nginx-ui:
image: uozi/nginx-ui:v2.0.0-beta.39
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
stdin_open: true
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:80
- ${PANEL_APP_PORT_HTTPS}:443
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${NGINX_UI_ROOT_PATH}/nginx:/etc/nginx
- ${NGINX_UI_ROOT_PATH}/nginx-ui:/etc/nginx-ui
- ${NGINX_UI_ROOT_PATH}/www:/var/www
environment:
- TZ=Asia/Shanghai
- NGINX_UI_SERVER_HTTP_HOST=0.0.0.0
- NGINX_UI_SERVER_HTTP_PORT=9000
- NGINX_UI_SERVER_RUN_MODE=release
- NGINX_UI_SERVER_HTTP_CHALLENGE_PORT=9180
- NGINX_UI_SERVER_DATABASE=database
- NGINX_UI_SERVER_START_CMD=login
- NGINX_UI_SERVER_START_CMD=database
- NGINX_UI_SERVER_PAGE_SIZE=10
- NGINX_UI_SERVER_CERT_RENEWAL_INTERVAL=7
- NGINX_UI_SERVER_SKIP_INSTALLATION=true

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