mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-03-13 13:00:33 +08:00
feat: alist 增加 5426 端口配置 (#1878)
This commit is contained in:
parent
0b4cca1e23
commit
8336b531dc
@ -8,3 +8,11 @@ additionalProperties:
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 5426
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_S3
|
||||
labelEn: S3 Port
|
||||
labelZh: S3 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
|
@ -6,6 +6,7 @@ services:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:5244"
|
||||
- "${PANEL_APP_PORT_S3}:5426"
|
||||
volumes:
|
||||
- ./data/data:/opt/alist/data
|
||||
- ./data/mnt:/mnt/data
|
||||
|
12
apps/alist/3.36.0/scripts/upgrade.sh
Normal file
12
apps/alist/3.36.0/scripts/upgrade.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -f ./.env ]]; then
|
||||
if grep -q 'PANEL_APP_PORT_S3' ./.env; then
|
||||
echo "PANEL_APP_PORT_S3 参数已存在"
|
||||
else
|
||||
echo 'PANEL_APP_PORT_S3=5426' >> ./.env
|
||||
echo "已添加 PANEL_APP_PORT_S3=5426"
|
||||
fi
|
||||
else
|
||||
echo ".env 文件不存在"
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user