发布 NexusPHP

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
新疆萌森软件开发工作室 2024-11-07 12:50:05 +08:00
parent ddc6b5087c
commit 4868590583
8 changed files with 356 additions and 0 deletions

View File

@ -0,0 +1,218 @@
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
- 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
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: "/home/nexusphp"
edit: true
envKey: NEXUSPHP_TORRENTS_ROOT_PATH
labelZh: 种子目录
labelEn: Torrent persistence path
required: true
type: text
- default: "/home/nexusphp"
edit: true
envKey: NEXUSPHP_BITBUCKET_ROOT_PATH
labelZh: 上传器目录
labelEn: Uploader persistence path
required: true
type: text
- default: "/home/nexusphp"
edit: true
envKey: NEXUSPHP_ATTACHMENTS_ROOT_PATH
labelZh: 附件目录
labelEn: Attachment persistence path
required: true
type: text
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: 访问端口
labelEn: Port
required: true
rule: paramPort
type: number
- default: "http://localhost"
edit: true
envKey: text
labelZh: 公网地址
labelEn: Public URL
required: true
type: text
- default: "base64:WUbN2wa2kl3E1VDW4iKaH3RBHw3hKY7BK0hWEkBZmGg="
edit: true
envKey: APP_KEY
labelZh: 应用密钥
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: 5432
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: true
type: text

View File

@ -0,0 +1,37 @@
networks:
1panel-network:
external: true
services:
nexusphp:
image: qyg2297248353/nexusphp:v1.8.14
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8080
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${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
environment:
- TIMEZONE=Asia/Shanghai
- APP_DEBUG=false
- APP_ENV=production
- LOG_LEVEL=info
- DB_CONNECTION=mysql
- BROADCAST_DRIVER=log
- CACHE_DRIVER=redis
- QUEUE_CONNECTION=redis
- SESSION_DRIVER=file
- SESSION_LIFETIME=120
- MAIL_FROM_NAME=${APP_NAME}
- SFTP_ROOT=/tmp
- GEOIP2_DATABASE=/var/www/html/geoip2/geoip2.mmdb

View File

@ -0,0 +1,26 @@
#!/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
# setup-2 download geoip2
GEOIP_DIR="$NEXUSPHP_ROOT_PATH/geoip2"
mkdir -p "$GEOIP_DIR"
GEOIP_FILE="$GEOIP_DIR/geoip2.mmdb"
if curl -o "$GEOIP_FILE" -L "https://cdn.jsdelivr.net/gh/Hackl0us/GeoIP2-CN@release/Country.mmdb"; then
echo "GeoIP2 database downloaded successfully to $GEOIP_FILE"
else
echo "Error: Failed to download GeoIP2 database."
fi
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,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

36
apps/nexusphp/README.md Normal file
View File

@ -0,0 +1,36 @@
# NexusPHP
完整的 PT 建站解决方案。基于 NexusPHP + Laravel + Filament。
![NexusPHP](https://file.lifebus.top/imgs/nexusphp_cover.png)
![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue)
## 特性
+ 发种
+ 特别区
+ 求种
+ 字幕
+ 考核
+ H&R
+ 认领
+ 审核
+ 签到
+ 补签卡
+ 勋章
+ 道具
+ 自定义标签
+ 第三方全文搜索
+ 盒子规则
+ 论坛
+ 申诉
+ 多语言
+ 自动备份
+ 插件支持
+ 管理后台
+ Json API
---
![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)

14
apps/nexusphp/data.yml Normal file
View File

@ -0,0 +1,14 @@
additionalProperties:
key: nexusphp
name: NexusPHP
tags:
- WebSite
- Local
shortDescZh: 完整的 PT 建站解决方案
shortDescEn: 完整的 PT 建站解决方案
type: website
crossVersionUpdate: true
limit: 0
website: https://nexusphp.org/
github: https://github.com/xiaomlove/nexusphp/
document: https://www.kimai.org/documentation/

BIN
apps/nexusphp/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB