mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-28 02:04:59 +08:00
feat: alist 增加 5426 端口配置 (#1878)
This commit is contained in:
parent
43e9678c0c
commit
d619bfbf9e
@ -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
alist/3.36.0/scripts/upgrade.sh
Normal file
12
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