mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
feat: alist 增加 5426 端口配置 (#1878)
This commit is contained in:
@@ -8,3 +8,11 @@ additionalProperties:
|
|||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
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
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- "${PANEL_APP_PORT_HTTP}:5244"
|
- "${PANEL_APP_PORT_HTTP}:5244"
|
||||||
|
- "${PANEL_APP_PORT_S3}:5426"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/data:/opt/alist/data
|
- ./data/data:/opt/alist/data
|
||||||
- ./data/mnt:/mnt/data
|
- ./data/mnt:/mnt/data
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user