mirror of
https://github.com/QYG2297248353/appstore-dpanel
synced 2025-12-29 08:01:36 +08:00
Synced apps from source repository via GitHub Actions
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
# 数据库 服务 (前置检查) [必填]
|
||||
PANEL_DB_TYPE=postgresql
|
||||
|
||||
# 数据持久化路径 [必填]
|
||||
NOCODB_ROOT_PATH=/home/nocodb
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=8080
|
||||
|
||||
# 管理员邮箱 [必填]
|
||||
NC_ADMIN_EMAIL=
|
||||
|
||||
# 管理员密码 [必填]
|
||||
NC_ADMIN_PASSWORD=
|
||||
|
||||
# 数据加密密钥 [必填]
|
||||
NC_AUTH_JWT_SECRET=
|
||||
|
||||
# 数据库 类型 [必填]
|
||||
DB_TYPE=pg
|
||||
|
||||
# 数据库 主机地址 [必填]
|
||||
DB_HOSTNAME=127.0.0.1
|
||||
|
||||
# 数据库 端口 [必填]
|
||||
DB_PORT=5432
|
||||
|
||||
# 数据库 用户名 [必填]
|
||||
DB_USER=nocodb
|
||||
|
||||
# 数据库 密码 [必填]
|
||||
DB_PASSWD=
|
||||
|
||||
# 数据库 名称 [必填]
|
||||
DB_NAME=nocodb
|
||||
|
||||
# Redis 缓存地址
|
||||
NC_REDIS_URL=
|
||||
|
||||
# 域名
|
||||
NC_PUBLIC_URL=
|
||||
|
||||
# 邮件服务器地址
|
||||
NC_SMTP_HOST=
|
||||
|
||||
# 邮件服务器端口
|
||||
NC_SMTP_PORT=465
|
||||
|
||||
# 邮件服务用户名
|
||||
NC_SMTP_USERNAME=
|
||||
|
||||
# 邮件服务密码
|
||||
NC_SMTP_PASSWORD=
|
||||
|
||||
# 邮件服务发件人
|
||||
NC_SMTP_FROM=
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
default: postgresql
|
||||
edit: true
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelZh: 数据库 服务 (前置检查)
|
||||
labelEn: Database Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: PostgreSQL
|
||||
value: postgresql
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: MariaDB
|
||||
value: mariadb
|
||||
- label: Percona
|
||||
value: percona
|
||||
- default: "/home/nocodb"
|
||||
edit: true
|
||||
envKey: NOCODB_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 8080
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: NC_ADMIN_EMAIL
|
||||
labelZh: 管理员邮箱
|
||||
labelEn: Administrator email
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: NC_ADMIN_PASSWORD
|
||||
labelZh: 管理员密码
|
||||
labelEn: Administrator password
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: NC_AUTH_JWT_SECRET
|
||||
labelZh: 数据加密密钥
|
||||
labelEn: Data encryption key
|
||||
required: true
|
||||
type: password
|
||||
- default: pg
|
||||
edit: true
|
||||
envKey: DB_TYPE
|
||||
labelZh: 数据库 类型
|
||||
labelEn: Database Type
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: PostgreSQL
|
||||
value: pg
|
||||
- label: MySQL (MariaDB, Percona)
|
||||
value: mysql2
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: DB_HOSTNAME
|
||||
labelZh: 数据库 主机地址
|
||||
labelEn: Database Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 5432
|
||||
edit: true
|
||||
envKey: DB_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "nocodb"
|
||||
edit: true
|
||||
envKey: DB_USER
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database User
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: DB_PASSWD
|
||||
labelEn: Database Password
|
||||
labelZh: 数据库 密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: "nocodb"
|
||||
edit: true
|
||||
envKey: DB_NAME
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: NC_REDIS_URL
|
||||
labelZh: Redis 缓存地址
|
||||
labelEn: Redis Cache Address
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: NC_PUBLIC_URL
|
||||
labelZh: 域名
|
||||
labelEn: Domain Name
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: NC_SMTP_HOST
|
||||
labelZh: 邮件服务器地址
|
||||
labelEn: Mailer Server Address
|
||||
required: false
|
||||
type: text
|
||||
- default: 465
|
||||
edit: true
|
||||
envKey: NC_SMTP_PORT
|
||||
labelZh: 邮件服务器端口
|
||||
labelEn: Mailer Server Port
|
||||
required: false
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: NC_SMTP_USERNAME
|
||||
labelZh: 邮件服务用户名
|
||||
labelEn: Mailer Username
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: NC_SMTP_PASSWORD
|
||||
labelZh: 邮件服务密码
|
||||
labelEn: Mailer Password
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: NC_SMTP_FROM
|
||||
labelZh: 邮件服务发件人
|
||||
labelEn: Mailer From
|
||||
required: false
|
||||
type: text
|
||||
@@ -0,0 +1,29 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
nocodb:
|
||||
container_name: nocodb
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- PORT=8080
|
||||
- NC_ALLOW_LOCAL_HOOKS=false
|
||||
- NC_DISABLE_CACHE=false
|
||||
- NC_DISABLE_TELE=true
|
||||
- NC_DASHBOARD_URL=/dashboard
|
||||
- NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080
|
||||
- NC_SMTP_SECURE=true
|
||||
- NC_SMTP_IGNORE_TLS=false
|
||||
- NC_DB=${DB_TYPE}://${DB_HOSTNAME}:${DB_PORT}?u=${DB_USER}&p=${DB_PASSWD}&d=${DB_NAME}
|
||||
image: nocodb/nocodb:0.264.4
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
restart: always
|
||||
volumes:
|
||||
- ${NOCODB_ROOT_PATH}/data:/usr/app/data
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user