mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-02-03 03:17:58 +08:00
发布 NexusPHP
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
9814da9774
commit
a092decb19
@ -1,38 +1,5 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
default: mysql
|
||||
edit: true
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelZh: MySQL 服务 (前置检查)
|
||||
labelEn: Database Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: MariaDB
|
||||
value: mariadb
|
||||
- label: Percona
|
||||
value: percona
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_REDIS_SERVICE
|
||||
required: true
|
||||
type: service
|
||||
default: redis
|
||||
envKey: PANEL_REDIS_TYPE
|
||||
labelZh: Redis 服务 (前置检查)
|
||||
labelEn: Redis Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: Redis
|
||||
value: redis
|
||||
- default: "/home/nexusphp"
|
||||
edit: true
|
||||
envKey: NEXUSPHP_ROOT_PATH
|
||||
@ -69,20 +36,6 @@ additionalProperties:
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "http://localhost"
|
||||
edit: true
|
||||
envKey: APP_URL
|
||||
labelZh: 公网地址
|
||||
labelEn: Public URL
|
||||
required: true
|
||||
type: text
|
||||
- default: "NexusPHP"
|
||||
edit: true
|
||||
envKey: APP_NAME
|
||||
labelZh: 应用名称
|
||||
labelEn: Application Name
|
||||
required: true
|
||||
type: text
|
||||
- default: "base64:WUbN2wa2kl3E1VDW4iKaH3RBHw3hKY7BK0hWEkBZmGg="
|
||||
edit: true
|
||||
envKey: APP_KEY
|
||||
@ -90,134 +43,3 @@ additionalProperties:
|
||||
labelEn: Application Key
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: NAS_TOOLS_KEY
|
||||
labelZh: NAS Tools 密钥 (MoviePilot)
|
||||
labelEn: NAS Tools Key (MoviePilot)
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: IYUU_SECRET
|
||||
labelZh: IYUU 密钥
|
||||
labelEn: IYUU Secret
|
||||
required: false
|
||||
type: text
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: DB_HOST
|
||||
labelZh: 数据库 主机地址
|
||||
labelEn: Database Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 3306
|
||||
edit: true
|
||||
envKey: DB_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "nexusphp"
|
||||
edit: true
|
||||
envKey: DB_DATABASE
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: "nexusphp"
|
||||
edit: true
|
||||
envKey: DB_USERNAME
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database Username
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: DB_PASSWORD
|
||||
labelZh: 数据库 密码
|
||||
labelEn: Database Password
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: REDIS_HOST
|
||||
labelZh: Redis 主机
|
||||
labelEn: Redis Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 6379
|
||||
edit: true
|
||||
envKey: REDIS_PORT
|
||||
labelZh: Redis 端口
|
||||
labelEn: Redis Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 0
|
||||
edit: true
|
||||
envKey: REDIS_DB
|
||||
labelZh: Redis 索引
|
||||
labelEn: Redis Index
|
||||
required: true
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: REDIS_PASSWORD
|
||||
labelZh: Redis 密码
|
||||
labelEn: Redis Password
|
||||
required: false
|
||||
type: password
|
||||
- default: "smtp"
|
||||
edit: true
|
||||
envKey: MAIL_MAILER
|
||||
labelZh: 邮件 发送协议
|
||||
labelEn: Mail Protocol
|
||||
required: true
|
||||
type: text
|
||||
- default: "smtp.qq.com"
|
||||
edit: true
|
||||
envKey: MAIL_HOST
|
||||
labelZh: 邮件 主机地址
|
||||
labelEn: Mail Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 25
|
||||
edit: true
|
||||
envKey: MAIL_PORT
|
||||
labelZh: 邮件 发送端口
|
||||
labelEn: Mail Port
|
||||
required: true
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: MAIL_USERNAME
|
||||
labelZh: 邮件 效验用户名
|
||||
labelEn: Mail Username
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: MAIL_PASSWORD
|
||||
labelZh: 邮件 效验密码
|
||||
labelEn: Mail Password
|
||||
required: false
|
||||
type: password
|
||||
- default: "tls"
|
||||
edit: true
|
||||
envKey: MAIL_ENCRYPTION
|
||||
labelZh: 邮件 加密协议
|
||||
labelEn: Mail Encryption Protocol
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: MAIL_FROM_ADDRESS
|
||||
labelZh: 邮件 发件人地址
|
||||
labelEn: Mail From Address
|
||||
required: false
|
||||
type: text
|
||||
|
@ -15,12 +15,14 @@ services:
|
||||
- ${PANEL_APP_PORT_HTTP}:80
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.env
|
||||
- /etc/1panel/envs/nexusphp/nexusphp.env
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${NEXUSPHP_ROOT_PATH}/config/.env.example:/var/www/html/.env.example
|
||||
- ${NEXUSPHP_ROOT_PATH}/data:/var/www/html
|
||||
- ${NEXUSPHP_ROOT_PATH}/torrents:/var/www/html/torrents
|
||||
- ${NEXUSPHP_ROOT_PATH}/bitbucket:/var/www/html/bitbucket
|
||||
- ${NEXUSPHP_ROOT_PATH}/attachments:/var/www/html/attachments
|
||||
- ${NEXUSPHP_TORRENTS_ROOT_PATH}/torrents:/var/www/html/torrents
|
||||
- ${NEXUSPHP_BITBUCKET_ROOT_PATH}/bitbucket:/var/www/html/bitbucket
|
||||
- ${NEXUSPHP_ATTACHMENTS_ROOT_PATH}/attachments:/var/www/html/attachments
|
||||
environment:
|
||||
- TIMEZONE=Asia/Shanghai
|
||||
- APP_DEBUG=false
|
||||
|
@ -19,6 +19,14 @@ if [ -f .env ]; then
|
||||
echo "Error: Failed to download GeoIP2 database."
|
||||
fi
|
||||
|
||||
# setup-3 copy env file
|
||||
CONFIG_DIR="$NEXUSPHP_ROOT_PATH/config"
|
||||
mkdir -p "$CONFIG_DIR"
|
||||
|
||||
CONFIG_FILE="$CONFIG_DIR/.env.example"
|
||||
cp /etc/1panel/envs/nexusphp/nexusphp.env $CONFIG_FILE
|
||||
sed -i "s/APP_KEY=.*/APP_KEY=$APP_KEY/" $CONFIG_FILE
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
|
94
envs/nexusphp/nexusphp.env
Normal file
94
envs/nexusphp/nexusphp.env
Normal file
@ -0,0 +1,94 @@
|
||||
APP_NAME=NexusPHP
|
||||
APP_ENV=local
|
||||
APP_KEY=base64:WUbN2wa2kl3E1VDW4iKaH3RBHw3hKY7BK0hWEkBZmGg=
|
||||
APP_DEBUG=true
|
||||
APP_URL=http://localhost
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
LOG_LEVEL=debug
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=nexusphp
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=
|
||||
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=redis
|
||||
QUEUE_CONNECTION=redis
|
||||
SESSION_DRIVER=file
|
||||
SESSION_LIFETIME=120
|
||||
|
||||
MEMCACHED_HOST=127.0.0.1
|
||||
|
||||
MAIL_MAILER=smtp
|
||||
MAIL_HOST=mailhog
|
||||
MAIL_PORT=1025
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_ENCRYPTION=null
|
||||
MAIL_FROM_ADDRESS=null
|
||||
MAIL_FROM_NAME="${APP_NAME}"
|
||||
|
||||
AWS_ACCESS_KEY_ID=
|
||||
AWS_SECRET_ACCESS_KEY=
|
||||
AWS_DEFAULT_REGION=us-east-1
|
||||
AWS_BUCKET=
|
||||
|
||||
PUSHER_APP_ID=
|
||||
PUSHER_APP_KEY=
|
||||
PUSHER_APP_SECRET=
|
||||
PUSHER_APP_CLUSTER=mt1
|
||||
|
||||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
||||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
||||
|
||||
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PASSWORD=
|
||||
REDIS_PORT=6379
|
||||
REDIS_DB=0
|
||||
|
||||
USE_CRON_TRIGGER_CLEANUP=true
|
||||
|
||||
LOG_FILE=/tmp/nexus.log
|
||||
|
||||
TIMEZONE=Asia/Shanghai
|
||||
|
||||
GOOGLE_DRIVE_CLIENT_ID=
|
||||
GOOGLE_DRIVE_CLIENT_SECRET=
|
||||
GOOGLE_DRIVE_REFRESH_TOKEN=
|
||||
GOOGLE_DRIVE_FOLDER_ID=
|
||||
|
||||
GEOIP2_DATABASE=/var/www/html/geoip2/geoip2.mmdb
|
||||
|
||||
ELASTICSEARCH_HOST=
|
||||
ELASTICSEARCH_PORT=
|
||||
ELASTICSEARCH_SCHEME=
|
||||
ELASTICSEARCH_USER=
|
||||
ELASTICSEARCH_PASS=
|
||||
ELASTICSEARCH_SSL_VERIFICATION
|
||||
ELASTICSEARCH_ENABLED=
|
||||
|
||||
SFTP_HOST=
|
||||
SFTP_USERNAME=
|
||||
SFTP_PASSWORD=
|
||||
SFTP_PORT=
|
||||
SFTP_ROOT=/tmp
|
||||
|
||||
UID_STARTS=10001
|
||||
|
||||
PHP_PATH=
|
||||
NAS_TOOLS_KEY=
|
||||
IYUU_SECRET=
|
||||
|
||||
MEILISEARCH_SCHEME=http
|
||||
MEILISEARCH_HOST=127.0.0.1
|
||||
MEILISEARCH_PORT=7700
|
||||
MEILISEARCH_MASTER_KEY=
|
||||
|
||||
CACHE_KEY_AGENT_ALLOW=all_agent_allows
|
||||
CACHE_KEY_AGENT_DENY=all_agent_denies
|
||||
CHANNEL_NAME_SETTING=channel_setting
|
||||
CHANNEL_NAME_MODEL_EVENT=channel_model_event
|
Loading…
x
Reference in New Issue
Block a user