Merge branch 'pr-782' into localApps

This commit is contained in:
okxlin 2024-01-22 17:23:46 +08:00
commit aebc12aeec
7 changed files with 205 additions and 0 deletions

View File

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

View File

@ -0,0 +1,19 @@
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

127
apps/sun-panel/README.md Normal file
View File

@ -0,0 +1,127 @@
# Sun-Panel
Server, NAS navigation panel, Homepage, Browser homepage.
<br>
一个服务器、NAS导航面板、Homepage、浏览器首页。
## 😎 特点
- 简洁
- 局域网内外网链接切换
- docker部署,对arm系统支持
- 上手简单,免修改代码
- 无需连接外部数据库
- 丰富图标自由搭配(文字图标+svg图标+内置三方图标库)
- 支持网页内置小窗口打开(部分网站屏蔽此功能)
- 占用资源小
## 🧊 最新完整文档DOC
[最新完整文档DOC](https://sun-panel-doc.enianteam.com/)
## 🎨 演示demo
[查看演示站](https://sun-panel-doc.enianteam.com/introduce/demo_site.html)
## 🐳 交流群&社区
开发者:**[红烧猎人](https://blog.enianteam.com/u/sun/content/11)**
Github社区板块https://github.com/hslr-s/sun-panel/discussions
## 🫓 TODO
- [x] 分组,拖拽排序
- [x] 导入导出功能
- [x] 增加访客账号
- [x] 帐号解除邮箱限制
- [x] 对上传的文件管理(针对账户增强重复利用,节省空间)
- [x] 服务器监控
- [x] 多国语言支持
- [ ] 用户自定义搜索框搜索引擎
- [ ] 搜索框样式自定义(背景颜色,文字颜色)
- [ ] docker管理器
- [ ] 计划任务
## 🍜 使用运行教程
<div id="default-username"></div>
### 默认账号密码
账号admin@sun.cc
密码12345678
### 命令参数
|参数|说明|
|---|---|
|-h|查看命令说明|
|-config|生成配置文件conf/conf.ini|
|-password-reset|重置第一个用户的密码|
### 二进制文件运行
去 [Releases](https://github.com/hslr-s/sun-panel/releases) 下载二进制文件
执行示例
```sh
./sun-panel
```
#### 重置密码
执行示例
```sh
./sun-panel -password-reset
```
输出
```
密码已经重置成功,以下是账号信息
用户名 xxx@qq.com
密码 12345678
```
### docker 运行
目录挂载 `-v`,根据自己的需求选择:
|容器目录|说明|
|---|---|
|/app/conf|配置文件|
|/app/uploads|上传的文件|
|/app/database|数据库文件|
|/app/runtime|运行日志(不推荐挂载)|
1. 拉取镜像
```sh
docker pull hslr/sun-panel
```
2. 直接下载运行
```sh
docker run -d --restart=always -p 3002:3002 \
-v ~/docker_data/sun-panel/conf:/app/conf \
-v ~/docker_data/sun-panel/uploads:/app/uploads \
-v ~/docker_data/sun-panel/database:/app/database \
--name sun-panel \
hslr/sun-panel
```
### 自编译运行
[请参考完整文档](https://sun-panel-doc.enianteam.com/zh_cn/usage/compile.html)
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=hslr-s/sun-panel&type=Date)](https://star-history.com/#hslr-s/sun-panel&Date)
## ❤️ 感谢
- [Roc](https://github.com/RocCheng)
- [jackloves111](https://github.com/jackloves111)
- [Rock.L](https://github.com/gitlyp)
## LICENSE
[MIT](./LICENSE)

19
apps/sun-panel/data.yml Normal file
View File

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

View File

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

View File

@ -0,0 +1,19 @@
version: '3'
services:
halo:
image: hslr/sun-panel
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

BIN
apps/sun-panel/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB