Processed apps directory via GitHub Actions

This commit is contained in:
QYG2297248353
2024-11-28 09:57:19 +00:00
parent 373a561487
commit 275d5be658
1857 changed files with 56700 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# 数据持久化路径 [必填]
NEXUSPHP_ROOT_PATH=/home/nexusphp
# 种子目录 [必填]
NEXUSPHP_TORRENTS_ROOT_PATH=/home/nexusphp
# 上传器目录 [必填]
NEXUSPHP_BITBUCKET_ROOT_PATH=/home/nexusphp
# 附件目录 [必填]
NEXUSPHP_ATTACHMENTS_ROOT_PATH=/home/nexusphp
# 访问端口 [必填]
PANEL_APP_PORT_HTTP=8080
# 应用密钥 [必填]
APP_KEY=base64:WUbN2wa2kl3E1VDW4iKaH3RBHw3hKY7BK0hWEkBZmGg=
+45
View File
@@ -0,0 +1,45 @@
additionalProperties:
formFields:
- 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: "base64:WUbN2wa2kl3E1VDW4iKaH3RBHw3hKY7BK0hWEkBZmGg="
edit: true
envKey: APP_KEY
labelZh: 应用密钥
labelEn: Application Key
required: true
type: text
@@ -0,0 +1,23 @@
networks:
1panel-network:
external: true
services:
nexusphp:
container_name: nexusphp
env_file:
- ./envs/global.env
- .env
image: qyg2297248353/nexusphp:v1.8.16
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:80
restart: always
volumes:
- ${NEXUSPHP_ROOT_PATH}/config/.env.example:/var/www/html/.env.example
- ${NEXUSPHP_ROOT_PATH}/data:/var/www/html
- ${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
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
@@ -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
+36
View File
@@ -0,0 +1,36 @@
#!/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
# 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
# setup-3 copy env file
CONFIG_DIR="$NEXUSPHP_ROOT_PATH/config"
mkdir -p "$CONFIG_DIR"
CONFIG_FILE="$CONFIG_DIR/.env.example"
cp ./envs/nexusphp.env $CONFIG_FILE
sed -i "s/APP_KEY=.*/APP_KEY=$APP_KEY/" $CONFIG_FILE
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