mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
Update app version [skip ci]
This commit is contained in:
@@ -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,24 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
nexusphp:
|
||||
image: qyg2297248353/nexusphp:v1.8.16
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:80
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.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_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,34 @@
|
||||
#!/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
|
||||
|
||||
# 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
|
||||
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