mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
@@ -0,0 +1,86 @@
|
||||
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: "false"
|
||||
edit: true
|
||||
envKey: NGINX_UI_SERVER_SKIP_INSTALLATION
|
||||
labelZh: 跳过安装模式
|
||||
labelEn: Skip Installation Mode
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 跳过
|
||||
value: "true"
|
||||
- label: 不跳过
|
||||
value: "false"
|
||||
- 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
|
||||
@@ -0,0 +1,33 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
nginx-ui:
|
||||
image: uozi/nginx-ui:v2.0.0-beta.36
|
||||
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
|
||||
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=false
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.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,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user