优化flarum外部访问;添加alist3.17.0

This commit is contained in:
okxlin 2023-05-16 00:49:48 +08:00
parent 123aa38723
commit 6f16028a2d
13 changed files with 216 additions and 13 deletions

View File

@ -0,0 +1,4 @@
CONTAINER_NAME=alist
PANEL_APP_PORT_HTTP=5244
DATA_PATH="./data/data"
MOUNT_PATH="./data/mnt"

View File

@ -0,0 +1,134 @@
<div align="center">
<a href="https://alist.nn.ci"><img height="100px" alt="logo" src="https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg"/></a>
<p><em>🗂一个支持多存储的文件列表程序,使用 Gin 和 Solidjs。</em></p>
<div>
<a href="https://goreportcard.com/report/github.com/alist-org/alist/v3">
<img src="https://goreportcard.com/badge/github.com/alist-org/alist/v3" alt="latest version" />
</a>
<a href="https://github.com/Xhofe/alist/blob/main/LICENSE">
<img src="https://img.shields.io/github/license/Xhofe/alist" alt="License" />
</a>
<a href="https://github.com/Xhofe/alist/actions?query=workflow%3ABuild">
<img src="https://img.shields.io/github/actions/workflow/status/Xhofe/alist/build.yml?branch=main" alt="Build status" />
</a>
<a href="https://github.com/Xhofe/alist/releases">
<img src="https://img.shields.io/github/release/Xhofe/alist" alt="latest version" />
</a>
<a title="Crowdin" target="_blank" href="https://crwd.in/alist">
<img src="https://badges.crowdin.net/alist/localized.svg">
</a>
</div>
<div>
<a href="https://github.com/Xhofe/alist/discussions">
<img src="https://img.shields.io/github/discussions/Xhofe/alist?color=%23ED8936" alt="discussions" />
</a>
<a href="https://discord.gg/F4ymsH4xv2">
<img src="https://img.shields.io/discord/1018870125102895134?logo=discord" alt="discussions" />
</a>
<a href="https://github.com/Xhofe/alist/releases">
<img src="https://img.shields.io/github/downloads/Xhofe/alist/total?color=%239F7AEA&logo=github" alt="Downloads" />
</a>
<a href="https://hub.docker.com/r/xhofe/alist">
<img src="https://img.shields.io/docker/pulls/xhofe/alist?color=%2348BB78&logo=docker&label=pulls" alt="Downloads" />
</a>
<a href="https://alist.nn.ci/zh/guide/sponsor.html">
<img src="https://img.shields.io/badge/%24-sponsor-F87171.svg" alt="sponsor" />
</a>
</div>
</div>
---
[English](./README.md) | 中文 | [Contributing](./CONTRIBUTING.md) | [CODE_OF_CONDUCT](./CODE_OF_CONDUCT.md)
## 功能
- [x] 多种存储
- [x] 本地存储
- [x] [阿里云盘](https://www.aliyundrive.com/)
- [x] OneDrive / Sharepoint[国际版](https://www.office.com/), [世纪互联](https://portal.partner.microsoftonline.cn),de,us
- [x] [天翼云盘](https://cloud.189.cn) (个人云, 家庭云)
- [x] [GoogleDrive](https://drive.google.com/)
- [x] [123云盘](https://www.123pan.com/)
- [x] FTP / SFTP
- [x] [PikPak](https://www.mypikpak.com/)
- [x] [S3](https://aws.amazon.com/cn/s3/)
- [x] [Seafile](https://seafile.com/)
- [x] [又拍云对象存储](https://www.upyun.com/products/file-storage)
- [x] WebDav(支持无API的OneDrive/SharePoint)
- [x] Teambition[中国](https://www.teambition.com/ )[国际](https://us.teambition.com/ )
- [x] [分秒帧](https://www.mediatrack.cn/)
- [x] [和彩云](https://yun.139.com/) (个人云, 家庭云)
- [x] [Yandex.Disk](https://disk.yandex.com/)
- [x] [百度网盘](http://pan.baidu.com/)
- [x] [夸克网盘](https://pan.quark.cn)
- [x] [迅雷网盘](https://pan.xunlei.com)
- [x] [蓝奏云](https://www.lanzou.com/)
- [x] [阿里云盘分享](https://www.aliyundrive.com/)
- [x] [谷歌相册](https://photos.google.com/)
- [x] [Mega.nz](https://mega.nz)
- [x] [一刻相册](https://photo.baidu.com/)
- [x] SMB
- [x] [115](https://115.com/)
- [X] Cloudreve
- [x] 部署方便,开箱即用
- [x] 文件预览PDF、markdown、代码、纯文本……
- [x] 画廊模式下的图像预览
- [x] 视频和音频预览,支持歌词和字幕
- [x] Office 文档预览docx、pptx、xlsx、...
- [x] `README.md` 预览渲染
- [x] 文件永久链接复制和直接文件下载
- [x] 黑暗模式
- [x] 国际化
- [x] 受保护的路由(密码保护和身份验证)
- [x] WebDav (具体见 https://alist.nn.ci/zh/guide/webdav.html)
- [x] [Docker 部署](https://hub.docker.com/r/xhofe/alist)
- [x] Cloudflare workers 中转
- [x] 文件/文件夹打包下载
- [x] 网页上传(可以允许访客上传),删除,新建文件夹,重命名,移动,复制
- [x] 离线下载
- [x] 跨存储复制文件
## 文档
<https://alist.nn.ci/zh/>
## Demo
<https://al.nn.ci>
## 讨论
一般问题请到[讨论论坛](https://github.com/Xhofe/alist/discussions) **issue仅针对错误报告和功能请求。**
## 赞助
AList 是一个开源软件如果你碰巧喜欢这个项目并希望我继续下去请考虑赞助我或提供一个单一的捐款感谢所有的爱和支持https://alist.nn.ci/zh/guide/sponsor.html
### 特别赞助
- [找资源 - 阿里云盘资源搜索引擎](https://zhaoziyuan.la/)
- [KinhDown 百度云盘不限速下载永久免费已稳定运行3年非常可靠Q群 -> 786799372](https://kinhdown.com)
- [JetBrains: Essential tools for software developers and teams](https://www.jetbrains.com/)
## 贡献者
Thanks goes to these wonderful people:
[![Contributors](http://contributors.nn.ci/api?repo=alist-org/alist&repo=alist-org/alist-web&repo=alist-org/docs)](https://github.com/alist-org/alist/graphs/contributors)
## 许可
`AList` 是在 AGPL-3.0 许可下许可的开源软件。
## 免责声明
- 本程序为免费开源项目旨在分享网盘文件方便下载以及学习golang使用时请遵守相关法律法规请勿滥用
- 本程序通过调用官方sdk/接口实现,无破坏官方接口行为;
- 本程序仅做302重定向/流量转发,不拦截、存储、篡改任何用户数据;
- 在使用本程序之前你应了解并承担相应的风险包括但不限于账号被ban下载限速等与本程序无关
- 如有侵权,请通过[邮件](mailto:i@nn.ci)与我联系,会及时处理。
---
> [@博客](https://nn.ci/) · [@GitHub](https://github.com/Xhofe) · [@Telegram群](https://t.me/alist_chat) · [@Discord](https://discord.gg/F4ymsH4xv2)

View File

@ -0,0 +1,41 @@
{
"formFields": [
{
"type": "number",
"labelZh": "网页端口",
"labelEn": "WebUI Port",
"required": true,
"default": 5244,
"rule": "paramPort",
"envKey": "PANEL_APP_PORT_HTTP",
"edit": true
},
{
"type": "text",
"labelZh": "数据文件夹路径",
"labelEn": "Data folder path",
"required": true,
"default": "./data/data",
"envKey": "DATA_PATH",
"edit": true
},
{
"type": "text",
"labelZh": "挂载文件夹路径",
"labelEn": "Mount folder path",
"required": true,
"default": "./data/mnt",
"envKey": "MOUNT_PATH",
"edit": true
},
{
"type": "text",
"labelZh": "管理员账户密码获取:容器终端输入./alist admin",
"labelEn": "Administrator account password retrieval: container terminal enter . /alist admin",
"required": false,
"default": "这是一个提示/This is a tip",
"edit": false
}
]
}

View File

View File

View File

@ -0,0 +1,24 @@
version: '3'
services:
alist:
container_name: ${CONTAINER_NAME}
restart: unless-stopped
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:5244"
volumes:
- "${DATA_PATH}:/opt/alist/data"
- "${MOUNT_PATH}:/mnt/data"
environment:
- PUID=0
- PGID=0
- UMASK=022
image: xhofe/alist:v3.17.0
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -7,4 +7,4 @@ PANEL_DB_NAME="flarum"
PANEL_DB_USER="flarum"
PANEL_DB_USER_PASSWORD="MyDBPWD_brls9UwcRasl"
PANEL_DB_PREFIX="flarum_"
Dockerized_HOST="127.0.0.1"
FLARUM_EXTERNAL_URL="http://localhost:40020"

View File

@ -92,11 +92,11 @@
},
{
"type": "text",
"labelZh": "本机IP",
"labelEn": "Local IP",
"labelZh": "外部访问地址",
"labelEn": "External URL",
"required": true,
"default": "127.0.0.1",
"envKey": "Dockerized_HOST",
"default": "http://localhost:40020",
"envKey": "FLARUM_EXTERNAL_URL",
"edit": true
}
]

View File

@ -27,7 +27,7 @@ services:
- DB_PREFIX=${PANEL_DB_PREFIX}
- DB_NOPREFIX=false
- DB_TIMEOUT=60
- FLARUM_BASE_URL=http://${Dockerized_HOST}:${PANEL_APP_PORT_HTTP}
- FLARUM_BASE_URL=${FLARUM_EXTERNAL_URL}
image: crazymax/flarum:1.7.1
labels:
createdBy: Apps

View File

@ -7,4 +7,4 @@ PANEL_DB_NAME="flarum"
PANEL_DB_USER="flarum"
PANEL_DB_USER_PASSWORD="MyDBPWD_brls9UwcRasl"
PANEL_DB_PREFIX="flarum_"
Dockerized_HOST="127.0.0.1"
FLARUM_EXTERNAL_URL="http://localhost:40020"

View File

@ -92,11 +92,11 @@
},
{
"type": "text",
"labelZh": "本机IP",
"labelEn": "Local IP",
"labelZh": "外部访问地址",
"labelEn": "External URL",
"required": true,
"default": "127.0.0.1",
"envKey": "Dockerized_HOST",
"default": "http://localhost:40020",
"envKey": "FLARUM_EXTERNAL_URL",
"edit": true
}
]

View File

@ -27,7 +27,7 @@ services:
- DB_PREFIX=${PANEL_DB_PREFIX}
- DB_NOPREFIX=false
- DB_TIMEOUT=60
- FLARUM_BASE_URL=http://${Dockerized_HOST}:${PANEL_APP_PORT_HTTP}
- FLARUM_BASE_URL=${FLARUM_EXTERNAL_URL}
image: crazymax/flarum:latest
labels:
createdBy: Apps

View File

@ -74,7 +74,7 @@
"key": "alist",
"name": "alist",
"tags": ["Tool"],
"versions": ["3.16.3","latest"],
"versions": ["3.17.0","latest"],
"shortDescZh": "一个支持多存储的文件列表程序",
"shortDescEn": "A file list program that supports multiple storage",
"type": "tool",