feat:优化sun-panel的适配

This commit is contained in:
okxlin 2024-01-22 23:39:15 +08:00
parent aebc12aeec
commit 93b8b53ab1
11 changed files with 82 additions and 49 deletions

View File

@ -0,0 +1,3 @@
CONTAINER_NAME="sun-panel"
PANEL_APP_PORT_HTTP="40198"
DATA_PATH="./data"

View File

@ -0,0 +1,17 @@
additionalProperties:
formFields:
- default: 40198
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text

View File

@ -0,0 +1,20 @@
version: '3'
services:
sun-panel:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:3002"
volumes:
- ${DATA_PATH}/conf:/app/conf
- ${DATA_PATH}/uploads:/app/uploads
- ${DATA_PATH}/database:/app/database
image: hslr/sun-panel:1.2.1
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -1,11 +0,0 @@
additionalProperties:
formFields:
- default: 3002
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@ -1,19 +0,0 @@
version: '3'
services:
halo:
image: hslr/sun-panel:1.3.0-beta24-01-17-19
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
volumes:
- ./data/conf:/app/conf
- ./data/uploads:/app/uploads
- ./data/database:/app/app/database
ports:
- ${PANEL_APP_PORT_HTTP}:3002
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -1,3 +1,14 @@
# 使用说明
- 账户密码
```
username: admin@sun.cc
password: 12345678
```
# 原始相关
***
# Sun-Panel # Sun-Panel
Server, NAS navigation panel, Homepage, Browser homepage. Server, NAS navigation panel, Homepage, Browser homepage.
<br> <br>
@ -124,4 +135,4 @@ hslr/sun-panel
- [Rock.L](https://github.com/gitlyp) - [Rock.L](https://github.com/gitlyp)
## LICENSE ## LICENSE
[MIT](./LICENSE) [MIT](https://github.com/hslr-s/sun-panel/blob/master/LICENSE)

View File

@ -1,19 +1,20 @@
name: sun-panel name: Sun-Panel
tags: tags:
- 建站 - 建站
title: 导航面板 title: 一个服务器、NAS导航面板、Homepage、浏览器首页
type: 导航面板 type: 建站
description: 一个服务器、NAS导航面板、Homepage、浏览器首页 description: 一个服务器、NAS导航面板、Homepage、浏览器首页
additionalProperties: additionalProperties:
key: sun-panel key: sun-panel
name: sun-panel name: Sun-Panel
tags: tags:
- WebSite - WebSite
shortDescZh: 一个服务器、NAS导航面板、Homepage、浏览器首页 shortDescZh: 一个服务器、NAS导航面板、Homepage、浏览器首页
shortDescEn: Server, NAS navigation panel, Homepage, Browser homepage
type: website type: website
crossVersionUpdate: true crossVersionUpdate: true
limit: 0 limit: 0
recommend: 3 recommend: 0
website: https://sun-panel-doc.enianteam.com/zh_cn/ website: https://sun-panel-doc.enianteam.com
github: https://github.com/hslr-s/sun-panel github: https://github.com/hslr-s/sun-panel
document: https://sun-panel-doc.enianteam.com/zh_cn/ document: https://sun-panel-doc.enianteam.com

View File

@ -0,0 +1,3 @@
CONTAINER_NAME="sun-panel"
PANEL_APP_PORT_HTTP="40198"
DATA_PATH="./data"

View File

@ -1,6 +1,6 @@
additionalProperties: additionalProperties:
formFields: formFields:
- default: 3002 - default: 40198
edit: true edit: true
envKey: PANEL_APP_PORT_HTTP envKey: PANEL_APP_PORT_HTTP
labelEn: Port labelEn: Port
@ -8,3 +8,10 @@ additionalProperties:
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text

View File

@ -1,19 +1,20 @@
version: '3' version: '3'
services: services:
halo: sun-panel:
image: hslr/sun-panel
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
restart: always restart: always
networks: networks:
- 1panel-network - 1panel-network
volumes:
- ./data/conf:/app/conf
- ./data/uploads:/app/uploads
- ./data/database:/app/app/database
ports: ports:
- ${PANEL_APP_PORT_HTTP}:3002 - "${PANEL_APP_PORT_HTTP}:3002"
labels: volumes:
- ${DATA_PATH}/conf:/app/conf
- ${DATA_PATH}/uploads:/app/uploads
- ${DATA_PATH}/database:/app/database
image: hslr/sun-panel:latest
labels:
createdBy: "Apps" createdBy: "Apps"
networks:
1panel-network: networks:
1panel-network:
external: true external: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB