提交合并
Signed-off-by: 萌森 <qyg2297248353@163.com>
101
.github/renovate.json
vendored
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:base"
|
||||||
|
],
|
||||||
|
"gitIgnoredAuthors": [
|
||||||
|
"githubaction@githubaction.com"
|
||||||
|
],
|
||||||
|
"rebaseWhen": "never",
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"packageNames": [
|
||||||
|
"docker-compose"
|
||||||
|
],
|
||||||
|
"automerge": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchFileNames": [
|
||||||
|
"apps/postgresql/pg*/*.yml"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^pg14*/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchFileNames": [
|
||||||
|
"apps/postgresql/pg*/*.yml"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^pg15*/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchFileNames": [
|
||||||
|
"apps/postgresql/pg*/*.yml"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^pg16*/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchFileNames": [
|
||||||
|
"apps/redis/6.2.*/*.yml"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^6.2.*/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchFileNames": [
|
||||||
|
"apps/redis/7.2.*/*.yml"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^7.2.*/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchFileNames": [
|
||||||
|
"apps/mysql/5.7.*/*.yml"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^5.7.*/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchFileNames": [
|
||||||
|
"apps/mysql/8.*/*.yml"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^8.*/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchFileNames": [
|
||||||
|
"apps/qbittorrent/4.*.*/*.yml"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^4.*.*/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchFileNames": [
|
||||||
|
"apps/transmission/4.*.*/*.yml"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^4.*.*/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchDatasources": [
|
||||||
|
"docker"
|
||||||
|
],
|
||||||
|
"matchPackageNames": [
|
||||||
|
"emby/embyserver"
|
||||||
|
],
|
||||||
|
"allowedVersions": "/^4\\.8\\.\\d+\\.\\d+$/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchDatasources": [
|
||||||
|
"docker"
|
||||||
|
],
|
||||||
|
"matchPackageNames": [
|
||||||
|
"ghcr.io/*"
|
||||||
|
],
|
||||||
|
"versionCompatibility": "^(?<compatibility>.*)-(?<version>.*)$",
|
||||||
|
"versioning": "semver"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchDatasources": [
|
||||||
|
"docker"
|
||||||
|
],
|
||||||
|
"matchPackageNames": [
|
||||||
|
"ghcr.io/*"
|
||||||
|
],
|
||||||
|
"versioning": "semver"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"prCreation": "immediate"
|
||||||
|
}
|
26
.github/workflows/renovate-app-version.sh
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# This script copies the version from docker-compose.yml to config.json.
|
||||||
|
|
||||||
|
app_name=$1
|
||||||
|
old_version=$2
|
||||||
|
|
||||||
|
# find all docker-compose files under apps/$app_name (there should be only one)
|
||||||
|
docker_compose_files=$(find apps/$app_name/$old_version -name docker-compose.yml)
|
||||||
|
|
||||||
|
for docker_compose_file in $docker_compose_files
|
||||||
|
do
|
||||||
|
# Assuming that the app version will be from the first docker image
|
||||||
|
first_service=$(yq '.services | keys | .[0]' $docker_compose_file)
|
||||||
|
|
||||||
|
image=$(yq .services.$first_service.image $docker_compose_file)
|
||||||
|
|
||||||
|
# Only apply changes if the format is <image>:<version>
|
||||||
|
if [[ "$image" == *":"* ]]; then
|
||||||
|
version=$(cut -d ":" -f2- <<< "$image")
|
||||||
|
|
||||||
|
# Trim the "v" prefix
|
||||||
|
trimmed_version=${version/#"v"}
|
||||||
|
|
||||||
|
mv apps/$app_name/$old_version apps/$app_name/$trimmed_version
|
||||||
|
fi
|
||||||
|
done
|
53
.github/workflows/renovate-app-version.yml
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
name: Update app version in Renovate Branches
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ 'renovate/*' ]
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
manual-trigger:
|
||||||
|
description: 'Manually trigger Renovate'
|
||||||
|
default: ''
|
||||||
|
jobs:
|
||||||
|
update-app-version:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Configure repo
|
||||||
|
run: |
|
||||||
|
git config --local user.email "githubaction@githubaction.com"
|
||||||
|
git config --local user.name "github-action update-app-version"
|
||||||
|
|
||||||
|
- name: Get list of updated files by the last commit in this branch separated by space
|
||||||
|
id: updated-files
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=files::$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | tr '\n' ' ')"
|
||||||
|
|
||||||
|
- name: Run renovate-app-version.sh on updated files
|
||||||
|
run: |
|
||||||
|
IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}"
|
||||||
|
|
||||||
|
for file in "${files[@]}"; do
|
||||||
|
if [[ $file == *"docker-compose.yml"* ]]; then
|
||||||
|
app_name=$(echo $file | cut -d'/' -f 2)
|
||||||
|
old_version=$(echo $file | cut -d'/' -f 3)
|
||||||
|
chmod +x .github/workflows/renovate-app-version.sh
|
||||||
|
.github/workflows/renovate-app-version.sh $app_name $old_version
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Commit & Push Changes
|
||||||
|
run: |
|
||||||
|
IFS=' ' read -ra files <<< "${{ steps.updated-files.outputs.files }}"
|
||||||
|
|
||||||
|
for file in "${files[@]}"; do
|
||||||
|
if [[ $file == *"docker-compose.yml"* ]]; then
|
||||||
|
app_name=$(echo $file | cut -d'/' -f 2)
|
||||||
|
git add "apps/$app_name/*" && git commit -m "Update app version [skip ci]" --no-verify && git push || true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
22
.github/workflows/renovate.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Renovate
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
manual-trigger:
|
||||||
|
description: 'Manually trigger Renovate'
|
||||||
|
default: ''
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
renovate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
- name: Run Renovate
|
||||||
|
uses: renovatebot/github-action@d4cde0ac34e53942ead1619a101748e3ab842937 # v40.2.1
|
||||||
|
with:
|
||||||
|
useSlim: false
|
||||||
|
token: ${{ secrets.GITHUBTOKEN }}
|
8
.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# OSX
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
.idea
|
||||||
|
|
||||||
|
# VSCode
|
||||||
|
.vscode
|
145
Install-Readme.md
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
# 应用制作说明
|
||||||
|
|
||||||
|
### 基础目录
|
||||||
|
|
||||||
|
`/app`
|
||||||
|
|
||||||
|
### 应用格式
|
||||||
|
|
||||||
|
```
|
||||||
|
├── app_name // 应用名称
|
||||||
|
├── logo.png // 应用 logo , 推荐 180 * 180 px
|
||||||
|
├── data.yml // 应用声明文件
|
||||||
|
├── README.md // 应用说明文档
|
||||||
|
├── 2.2.0 // 应用版本
|
||||||
|
│ ├── data.yml // 表单配置
|
||||||
|
| ├── scripts // 脚本目录
|
||||||
|
│ └── docker-compose.yml // docker-compose 文件
|
||||||
|
└── 2.3.2 // 应用版本
|
||||||
|
├── data.yml
|
||||||
|
├── data
|
||||||
|
└── docker-compose.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 应用声明文件
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# 固定参数
|
||||||
|
additionalProperties:
|
||||||
|
# 应用的 key , 仅限英文
|
||||||
|
key: app_name
|
||||||
|
# 应用名称 显示名称
|
||||||
|
name: app_show_name
|
||||||
|
# 应用标签
|
||||||
|
tags:
|
||||||
|
# 参考 tags.yml
|
||||||
|
- WebSite
|
||||||
|
# 应用中文描述, 推荐 30 字以内
|
||||||
|
shortDescZh: 应用主要概述
|
||||||
|
# 应用英文描述
|
||||||
|
shortDescEn: Application main description
|
||||||
|
# 应用类型
|
||||||
|
type: website
|
||||||
|
# 跨大版本升级
|
||||||
|
crossVersionUpdate: true
|
||||||
|
# 安装限制, 0 代表无限制
|
||||||
|
limit: 0
|
||||||
|
# 官网地址
|
||||||
|
website: https://app.com
|
||||||
|
# 仓库地址
|
||||||
|
github: https://github.com/app/app
|
||||||
|
# 文档地址
|
||||||
|
document: https://docs.app.com
|
||||||
|
```
|
||||||
|
|
||||||
|
##### 应用类型
|
||||||
|
|
||||||
|
| type | 说明 |
|
||||||
|
|---------|--------------------------------------------------------|
|
||||||
|
| website | website 类型在 1Panel 中支持在网站中一键部署,wordpress halo 都是此 type |
|
||||||
|
| runtime | mysql openresty redis 等类型的应用 |
|
||||||
|
| tool | phpMyAdmin redis-commander jenkins 等类型的应用 |
|
||||||
|
|
||||||
|
#### 脚本目录
|
||||||
|
|
||||||
|
+ `scripts` 安装脚本文件
|
||||||
|
+ `init.sh` 安装前执行
|
||||||
|
+ `upgrade.sh` 升级前执行
|
||||||
|
+ `uninstall.sh` 卸载后执行
|
||||||
|
|
||||||
|
#### 表单配置
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# 固定参数
|
||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
# 默认值
|
||||||
|
- default: ""
|
||||||
|
# 安装后可修改
|
||||||
|
edit: true
|
||||||
|
# 是否禁用
|
||||||
|
disabled: false
|
||||||
|
# 环境变量 key
|
||||||
|
envKey: PANEL_DB_HOST
|
||||||
|
# 依赖应用 key
|
||||||
|
key: mysql
|
||||||
|
# 英文标签
|
||||||
|
labelEn: Database Service
|
||||||
|
# 中文标签
|
||||||
|
labelZh: 数据库服务
|
||||||
|
# 是否必填
|
||||||
|
required: true
|
||||||
|
# 依赖服务
|
||||||
|
type: service
|
||||||
|
# 是否在默认值基础上增加随机字符
|
||||||
|
random: true
|
||||||
|
# 校验规则
|
||||||
|
rule: paramCommon
|
||||||
|
# 下拉选择
|
||||||
|
- default: ""
|
||||||
|
envKey: LOG_LEVEL
|
||||||
|
labelEn: Log level
|
||||||
|
labelZh: 日志级别
|
||||||
|
required: true
|
||||||
|
type: select
|
||||||
|
values:
|
||||||
|
- label: DEBUG
|
||||||
|
value: "DEBUG"
|
||||||
|
- label: INFO
|
||||||
|
value: "INFO"
|
||||||
|
- label: WARNING
|
||||||
|
value: "WARNING"
|
||||||
|
- label: ERROR
|
||||||
|
value: "ERROR"
|
||||||
|
- label: CRITICAL
|
||||||
|
value: "CRITICAL"
|
||||||
|
# 端口效验
|
||||||
|
- default: 3306
|
||||||
|
envKey: PANEL_APP_PORT_DB
|
||||||
|
labelEn: Database port
|
||||||
|
labelZh: 数据库端口
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
```
|
||||||
|
|
||||||
|
##### 字段说明
|
||||||
|
|
||||||
|
+ `type` 字段类型
|
||||||
|
+ `service` 依赖服务
|
||||||
|
+ `password` 密码
|
||||||
|
+ `text` 文本
|
||||||
|
+ `number` 数字
|
||||||
|
+ `select` 下拉框
|
||||||
|
+ `rule` 校验规则
|
||||||
|
+ `paramPort` 用于限制端口范围为 1-65535
|
||||||
|
+ `paramCommon` 英文、数字、.-和_,长度2-30
|
||||||
|
+ `paramComplexity` 支持英文、数字、.%@$!&~_-,长度6-30,特殊字符不能在首尾
|
||||||
|
+ `paramExtUrl` 格式为 http(s)://(域名/ip):(端口)
|
||||||
|
+ `key` 特殊值
|
||||||
|
+ `PANEL_APP_PORT_HTTP` Web应用端口
|
||||||
|
+ `PANEL_APP_PORT_HTTPS` Web应用端口 SSL
|
||||||
|
+ `PANEL_APP_PORT` 前缀将认定为端口,并且用于安装前的端口占用校验
|
||||||
|
|
||||||
|
#### docker-compose.yml 文件
|
||||||
|
|
||||||
|
通过使用 `${envKey}` 获取`表单配置`中的值
|
674
LICENSE
Normal file
@ -0,0 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
208
README.md
Normal file
@ -0,0 +1,208 @@
|
|||||||
|
# 1Panel 第三方应用商店
|
||||||
|
|
||||||
|
> # 2024年07月17日 公告
|
||||||
|
>
|
||||||
|
> 正式开始维护,新老用户推荐使用自动化脚本完成软件订阅。
|
||||||
|
>
|
||||||
|
> # 2024年07月16日 公告
|
||||||
|
>
|
||||||
|
> 为了解决应用安装问题,我们将在近期发布新的应用安装脚本,敬请期待!
|
||||||
|
>
|
||||||
|
> 具体上线应用,可以参考下方应用列表状态标识。
|
||||||
|
>
|
||||||
|
> 通过固定环境变量文件,解决应用安装问题,不再需要手动创建 `.env` 文件。
|
||||||
|
>
|
||||||
|
> 对于 `FIT2CLOUD 飞致云` 旗下开源产品 `1Panel` 经过多次商讨,依旧无法将原有问题解决。迫于无奈,这次我们采用迂回战术,通过固定环境变量文件的方式解决问题。
|
||||||
|
>
|
||||||
|
> 因此提高了维护成本,但相比于用户体验,我们认为这是值得的。简洁的 `docker-compose.yml` 才是我们的目标。
|
||||||
|
>
|
||||||
|
> 后续接入 `Dockge` 应用,将会迎来新的安装方式,敬请期待!
|
||||||
|
>
|
||||||
|
> 新老用户均可使用新的安装方式,升级或安装自动化脚本,无需卸载原有安装脚本。
|
||||||
|
>
|
||||||
|
> 由于结构变化,我们建议您,完全卸载应用后重新安装,以免出现问题。
|
||||||
|
>
|
||||||
|
> # 2024年06月14日 公告
|
||||||
|
> 由于 1Panel 的升级,自版本 `v1.10.10-lts` 开始,所有应用均已停止更新!
|
||||||
|
>
|
||||||
|
> 经过与 1Panel 官方商议,由于其认为安装或升级应用或面板出现的问题不属于 `Bug`,对于使用本仓库的用户,我们深感抱歉!
|
||||||
|
> 截至目前,我们将不再更新任何应用,如果您有任何问题,请放弃使用当前第三方应用。
|
||||||
|
>
|
||||||
|
> 如果您依旧收到应用更新提示,当前唯一解决升级方案为:卸载应用并重新安装。
|
||||||
|
> 安装时出现的相关问题,请参考常见问题解决。
|
||||||
|
>
|
||||||
|
> 🥰 祝大家周末愉快~~
|
||||||
|
>
|
||||||
|
> # 2024年06月12日 公告
|
||||||
|
> 由于 1Panel 的升级,造成部分应用无法正常使用,我们考虑到用户体验,决定暂时关闭应用商店更新,等待团队商议解决方案。
|
||||||
|
>
|
||||||
|
> ### 拟定解决方案
|
||||||
|
> 1. 当您收到提示 /xxx/xxx/.env 文件不存在时,请手动创建该文件,不需要填写任何内容的空文件。
|
||||||
|
> 2. 当您升级 1Panel 出现容器不存在时,请查看容器列表是否正常运行,如果没有运行,可卸载应用并重新安装。
|
||||||
|
> 3. 当您升级 1Panel 出现应用无法正常使用时,请查看应用是否正常运行,如果没有运行,可卸载应用并重新安装。
|
||||||
|
> 4. 关闭期间,您可能会收到部分应用的更新,没有关系,您可以选择性更新,不会影响您的使用。
|
||||||
|
> 5. 由于数据均采用持久化方式存储,卸载应用不会删除数据,您可以放心卸载并重新安装。
|
||||||
|
>
|
||||||
|
> # 2024年06月09日 公告
|
||||||
|
> 警告 请勿升级 1Panel 到 v1.10.10-lts 版本,否则会导致应用商店无法使用!
|
||||||
|
|
||||||
|
本仓库中的所有应用不会与 1Panel 官方应用商店冲突(存在相同应用并不影响后续的安装与升级,择优选择你需要的版本即可)
|
||||||
|
,我们会定期更新应用,如果您有任何问题,请联系我们。
|
||||||
|
当前仓库由 [`新疆萌森软件开发工作室`](https://lifebus.top/) 维护,我们致力于为 1Panel 用户提供更多的应用程序。
|
||||||
|
|
||||||
|
## 维护状态
|
||||||
|
|
||||||
|
| 维护状态 | 应用名称 | 官网 | 描述 | 集合 |
|
||||||
|
|:----:|:-----------------------:|:-----------------------------------------:|:---------------------------------------------------------------------|:---------:|
|
||||||
|
| 🟢 | AList | https://alist.nn.ci/ | 一款支持多重存储的文件列表程序 | |
|
||||||
|
| 🟢 | Bark | https://bark.day.app/ | 一款注重隐私、安全可控的自定义通知推送工具 | |
|
||||||
|
| 🔴 | Cookie Cloud | https://github.com/easychen/CookieCloud/ | CookieCloud是一个和自架服务器同步浏览器Cookie和LocalStorage的小工具 | |
|
||||||
|
| 🔴 | DeepLX | https://deeplx.owo.network/ | DeepL免费API(无需TOKEN) | |
|
||||||
|
| 🟢 | Dockge | https://dockge.kuma.pet/ | 面向堆栈的管理器 | |
|
||||||
|
| 🔴 | Elasticsearch | https://www.elastic.co/elasticsearch/ | Elasticsearch 是一个分布式、RESTful 风格的搜索和数据分析引擎 | Elastic |
|
||||||
|
| 🔴 | Kibana | https://www.elastic.co/kibana/ | Kibana 针对大规模数据快速运行数据分析 | Elastic |
|
||||||
|
| 🟢 | Emby | https://emby.media/ | Emby Server 是一款个人媒体服务器,可在几乎所有设备上运行应用程序 | |
|
||||||
|
| 🟢 | Emby-lovechen | https://emby.media/ | 【开心版】Emby Server 是一款个人媒体服务器,可在几乎所有设备上运行应用程序 | |
|
||||||
|
| 🟢 | Gitea | https://gitea.io/ | 私有、快速、可靠的 DevOps 平台 | Gitea |
|
||||||
|
| 🟢 | Gitea Runner | https://gitea.io/ | 【Runner】私有、快速、可靠的 DevOps 平台 | Gitea |
|
||||||
|
| 🟢 | Halo | https://halo.run/ | 强大易用的开源建站工具 | |
|
||||||
|
| 🟢 | Immich | https://immich.app/ | 【完整版本】高性能自托管照片和视频管理解决方案 | Immich |
|
||||||
|
| 🟢 | Immich-Server | https://immich.app/ | 【主服务模块】高性能自托管照片和视频管理解决方案 | Immich |
|
||||||
|
| 🟢 | Immich-Machine-Learning | https://immich.app/ | 【机器学习模块】高性能自托管照片和视频管理解决方案 | Immich |
|
||||||
|
| 🟢 | IYUU Plus | https://doc.iyuu.cn/ | 基于特征码的索引工具 | |
|
||||||
|
| 🟢 | Jellyfin | https://jellyfin.org/ | 自由软件媒体系统 | |
|
||||||
|
| 🔴 | LinkDing | https://github.com/sissbruecker/linkding/ | 自托管书签管理器 | |
|
||||||
|
| 🔴 | MinIO | https://min.io/ | MinIO 是一种高性能、兼容 S3 的对象存储 | |
|
||||||
|
| 🟢 | MoviePilot | https://github.com/jxxghp/MoviePilot/ | NAS媒体库自动化管理工具 | |
|
||||||
|
| 🟢 | MySQL | https://www.mysql.com/ | 关系数据库管理系统 | MySQL |
|
||||||
|
| 🟢 | MariaDB | https://mariadb.org/ | 【MySQL分支】创新的开源数据库 | MySQL |
|
||||||
|
| 🟢 | Percona | https://www.percona.com/ | 【MySQL分支】关系数据库管理系统 | MySQL |
|
||||||
|
| 🔴 | Nacos | https://nacos.io/ | 动态服务发现、配置管理和服务管理平台 | |
|
||||||
|
| 🟢 | NeZha | https://nacos.io/ | 【哪吒监控】开源、轻量、易用的服务器监控、运维工具 | |
|
||||||
|
| 🟢 | OneDev | https://onedev.io/ | DevOps 平台、带有 CI/CD、看板和软件包的 Git 服务器 | |
|
||||||
|
| 🟢 | OutLine | https://www.getoutline.com/ | 快速、协作的团队知识库 | |
|
||||||
|
| 🟢 | PostgreSQL | https://www.postgresql.org/ | 世界上最先进的开源关系数据库 | |
|
||||||
|
| 🟢 | qBittorrent | https://www.qbittorrent.org/ | qBittorrent 比特流客户端 | |
|
||||||
|
| 🟢 | QingLong | https://github.com/whyour/qinglong/ | 【青龙】支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台 | |
|
||||||
|
| 🟢 | Redis | https://redis.io/ | 从世界上最快的内存数据库创建者那里获取该数据库 | |
|
||||||
|
| 🔴 | Sentinel | https://sentinelguard.io/ | 面向分布式、多语言异构化服务架构的流量治理组件 | |
|
||||||
|
| 🟢 | SiYuan | https://b3log.org/siyuan/ | 【思源笔记】一款隐私优先、自托管、完全开源的个人知识管理软件 | |
|
||||||
|
| 🔴 | SpeedTest | https://www.speedtest.net/ | 互联网速度测试 | SpeedTest |
|
||||||
|
| 🔴 | SpeedTest-Tracker | https://docs.speedtest-tracker.dev/ | Speedtest Tracker 是一款自托管互联网性能跟踪应用程序,可针对 Ookla 的 Speedtest 服务运行速度测试检查 | |
|
||||||
|
| 🔴 | Stream-Rec | https://github.com/hua0512/stream-rec | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | |
|
||||||
|
| 🟢 | Transmission | https://transmissionbt.com/ | 快速、简单、免费的 Bittorrent 客户端 | |
|
||||||
|
| 🟢 | Uptime Kuma | https://uptime.kuma.pet/ | 自托管监控工具 | |
|
||||||
|
| 🟢 | Umami | https://umami.is/ | 为速度和效率而构建的网站分析 | |
|
||||||
|
| 🔴 | Yarr | https://github.com/nkanaev/yarr | Rss 阅读器 | |
|
||||||
|
| 🔴 | Ztncui | https://www.zerotier.com/ | 【自建服务端】ZeroTier 可让您构建几乎任何类型的现代化安全多点虚拟化网络 | ZeroTier |
|
||||||
|
|
||||||
|
> 说明:
|
||||||
|
>
|
||||||
|
> 以上排序不分先后,按照字母顺序排列。
|
||||||
|
>
|
||||||
|
> 维护状态:🟢 维护中 🔴 未维护 🟡 表示不定期维护
|
||||||
|
|
||||||
|
## 应用安装
|
||||||
|
|
||||||
|
> 温馨提示:
|
||||||
|
> 当您已安装其他第三方库时并且存在应用冲突,安装过程中会主动删除冲突的第三方库应用,如果您不同意,请不要执行脚本。
|
||||||
|
>
|
||||||
|
> 我们建议您在安装之前备份您的数据,或手动安装。
|
||||||
|
|
||||||
|
### 方案一:自动化安装
|
||||||
|
|
||||||
|
如果您不想每次都手动执行命令,可以使用一键式安装。我们优先推荐此方式。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
curl -sSL https://install.lifebus.top/auto_install.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
> 卸载自动化脚本 (不会卸载应用)
|
||||||
|
|
||||||
|
```shell
|
||||||
|
curl -sSL https://install.lifebus.top/auto_uninstall.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
如需卸载应用列表,您可以手动删除以下目录:
|
||||||
|
|
||||||
|
+ 应用目录:`${1panel应用目录}/resource/apps/local`
|
||||||
|
|
||||||
|
+ 应用公共文件目录:`/etc/1panel/envs`
|
||||||
|
|
||||||
|
+ 应用数据目录:`${应用持久化目录}`
|
||||||
|
|
||||||
|
### 方案二:手动安装
|
||||||
|
|
||||||
|
应用的升级与更新均需要重新执行安装脚本。
|
||||||
|
|
||||||
|
#### 手动执行模式
|
||||||
|
|
||||||
|
```shell
|
||||||
|
curl -sSL https://install.lifebus.top/app_install.sh | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
### 方案三:计划任务模式
|
||||||
|
|
||||||
|
将内容写入Shell计划任务中,设定定期执行。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
script_url="https://install.lifebus.top/app_install.sh"
|
||||||
|
|
||||||
|
echo "Downloading and executing script from $script_url..."
|
||||||
|
bash <(curl -sL "$script_url")
|
||||||
|
|
||||||
|
echo "Script execution completed."
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 配置脚本网络代理
|
||||||
|
|
||||||
|
```sh
|
||||||
|
proxy_protocols="http"
|
||||||
|
proxy_server="server address"
|
||||||
|
proxy_port="server port"
|
||||||
|
export http_proxy="$proxy_protocols://$proxy_server:$proxy_port"
|
||||||
|
export https_proxy="$proxy_protocols://$proxy_server:$proxy_port"
|
||||||
|
```
|
||||||
|
|
||||||
|
## 常见问题
|
||||||
|
|
||||||
|
+ 升级失败
|
||||||
|
+ 检查网络状况与磁盘空间
|
||||||
|
+ 配置镜像地址
|
||||||
|
+ 尝试重新升级
|
||||||
|
+ 进行卸载重装
|
||||||
|
+ 多次升级依旧失败,请联系我们
|
||||||
|
+ 安装提示
|
||||||
|
+ `Error: /xxx/xxx/.env file does not exist`
|
||||||
|
+ 请手动创建 `.env` 文件,不需要填写任何内容的空文件
|
||||||
|
+ 重新点击安装
|
||||||
|
+ 前置检查
|
||||||
|
+ `前置检查` 是利用 `1Panel` 的应用特性,进行安装前的环境检查,如果您的环境不符合要求,将无法安装应用。
|
||||||
|
+ 关于 `前置检查` 依旧需要填写 `数据库` 相关连接信息,是因为其提供的能力并不是完全可靠,避免后期出现问题,我们采用持久化的方式存储。
|
||||||
|
+ 如果您的环境符合要求,但是依旧无法安装,请联系我们。
|
||||||
|
|
||||||
|
## 温馨提示
|
||||||
|
|
||||||
|
安装应用前请查看应用说明,了解应用的使用方法和注意事项。
|
||||||
|
当前第三方库应用均为开源应用,我们不对应用的安全性和稳定性负责。
|
||||||
|
如果您在使用过程中遇到问题,请查看应用的官方文档或社区,或者联系我们。
|
||||||
|
|
||||||
|
## 联系我们
|
||||||
|
|
||||||
|
[📮邮箱](mailto:qyg2297248353@gmail.com)
|
||||||
|
|
||||||
|
[🌍官网](https://lifebus.top/)
|
||||||
|
|
||||||
|
[🌍博客](https://blog.lifebus.top/)
|
||||||
|
|
||||||
|
[🌍GitHub](https://github.com/qyg2297248353)
|
||||||
|
|
||||||
|
[✈️Telegram](https://t.me/qyg2297248353)
|
||||||
|
|
||||||
|
[🌍Twitter](https://twitter.com/qyg2297248353)
|
||||||
|
|
||||||
|
[🌍Facebook](https://www.facebook.com/qyg2297248353)
|
||||||
|
|
||||||
|
[🌍Instagram](https://www.instagram.com/qyg2297248353)
|
74
apps/alist-aria2/3.35.0/data.yml
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "/home/alist"
|
||||||
|
edit: true
|
||||||
|
envKey: ALIST_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 5244
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelZh: WebUI 端口
|
||||||
|
labelEn: WebUI port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: JWT_SECRET
|
||||||
|
labelZh: 加密密钥
|
||||||
|
labelEn: Encryption key
|
||||||
|
required: false
|
||||||
|
type: password
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: SITE_URL
|
||||||
|
labelZh: 站点 URL
|
||||||
|
labelEn: Site URL
|
||||||
|
required: false
|
||||||
|
rule: paramExtUrl
|
||||||
|
type: text
|
||||||
|
- default: 48
|
||||||
|
edit: true
|
||||||
|
envKey: TOKEN_EXPIRES_IN
|
||||||
|
labelZh: 登录过期时间 (小时)
|
||||||
|
labelEn: Login expiration time (hours)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: 0
|
||||||
|
edit: true
|
||||||
|
envKey: DELAYED_START
|
||||||
|
labelZh: 延时启动 (秒)
|
||||||
|
labelEn: Delayed start (seconds)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: 0
|
||||||
|
edit: true
|
||||||
|
envKey: max_connections
|
||||||
|
labelZh: 最大连接数
|
||||||
|
labelEn: Maximum connections
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_1
|
||||||
|
labelEn: Custom mount directory 1
|
||||||
|
labelZh: 自定义挂载目录 1
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_2
|
||||||
|
labelEn: Custom mount directory 2
|
||||||
|
labelZh: 自定义挂载目录 2
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_3
|
||||||
|
labelEn: Custom mount directory 3
|
||||||
|
labelZh: 自定义挂载目录 3
|
||||||
|
required: false
|
||||||
|
type: text
|
28
apps/alist-aria2/3.35.0/docker-compose.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
version: "3.8"
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
services:
|
||||||
|
alist-aria2:
|
||||||
|
image: xhofe/alist-aria2:v3.35.0
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:5244
|
||||||
|
env_file:
|
||||||
|
- /etc/1panel/envs/global.env
|
||||||
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
|
volumes:
|
||||||
|
- ${ALIST_ROOT_PATH}/data:/opt/alist/data
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||||
|
environment:
|
||||||
|
- PUID=0
|
||||||
|
- PGID=0
|
||||||
|
- UMASK=022
|
||||||
|
- FORCE=false
|
14
apps/alist-aria2/3.35.0/scripts/init.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/alist-aria2/3.35.0/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
14
apps/alist-aria2/3.35.0/scripts/upgrade.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
84
apps/alist-aria2/README.md
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
# AList
|
||||||
|
|
||||||
|
一个支持多种存储的文件列表程序
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 特性
|
||||||
|
|
||||||
|
+ 使用简单
|
||||||
|
+ AList 从一开始就设计为易于安装,并且可以在所有平台上使用。
|
||||||
|
|
||||||
|
+ 多种存储
|
||||||
|
+ AList 支持多个存储提供商,包括本地存储、阿里云盘、OneDrive、Google Drive 等,且易于拓展。
|
||||||
|
|
||||||
|
+ 支持 WebDAV
|
||||||
|
+ AList 支持所有 WebDAV 存储,这是一种用于访问文件的标准。
|
||||||
|
|
||||||
|
+ 黑暗模式
|
||||||
|
+ 自由切换明暗模式
|
||||||
|
|
||||||
|
+ 受保护的路由
|
||||||
|
+ 为特定路径添加密码保护和身份验证
|
||||||
|
|
||||||
|
+ 文件预览
|
||||||
|
+ 支持视频、音频、文档、PDF、图片预览等,甚至支持 ipa 安装
|
||||||
|
|
||||||
|
+ 打包下载/批量下载
|
||||||
|
+ 使用浏览器的 stream api 支持打包下载,无需使用服务器 / 使用Aria2进行批量下载支持文件夹
|
||||||
|
|
||||||
|
+ 单点登录
|
||||||
|
+ 使用单点登录快速登录AList
|
||||||
|
|
||||||
|
+ 自动注册AList帐号
|
||||||
|
+ 使用单点登录自动注册为AList帐号快速注册
|
||||||
|
|
||||||
|
+ 离线下载
|
||||||
|
+ 将种子内容离线下载到指定的目录內,需要苛刻的网络环境
|
||||||
|
|
||||||
|
+ 保险箱加密/解密 文件
|
||||||
|
+ 任何人都可以安全地将加密数据存储在远程存储提供商上。数据存储在保险箱中,提供商只能看到保险箱,看不到您的数据。
|
||||||
|
|
||||||
|
+ 更多新功能
|
||||||
|
+ 包括文本编辑器、README/HTML 渲染、文件永久链接、Cloudflare Workers 代理等
|
||||||
|
|
||||||
|
## 安装说明
|
||||||
|
|
||||||
|
当前版本预装 `aria2` 用于下载
|
||||||
|
|
||||||
|
> 默认用户名:`admin`
|
||||||
|
>
|
||||||
|
> 默认密码:首次启动,可通过日志查询,或重置密码
|
||||||
|
|
||||||
|
### 重置密码
|
||||||
|
|
||||||
|
+ 随机生成一个密码
|
||||||
|
|
||||||
|
```shell
|
||||||
|
alist admin random
|
||||||
|
```
|
||||||
|
|
||||||
|
+ 设置指定密码
|
||||||
|
|
||||||
|
```shell
|
||||||
|
alist admin set {PASSWORD}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 反向代理
|
||||||
|
|
||||||
|
> Nginx 配置示例
|
||||||
|
|
||||||
|
```conf
|
||||||
|
location / {
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header Host $host:$server_port;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Range $http_range;
|
||||||
|
proxy_set_header If-Range $http_if_range;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_pass http://127.0.0.1:5244;
|
||||||
|
# 文件最大上传大小 20GB
|
||||||
|
client_max_body_size 20000m;
|
||||||
|
}
|
||||||
|
```
|
18
apps/alist-aria2/data.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Alist
|
||||||
|
title: 文件列表程序
|
||||||
|
description: 一个支持多种存储的文件列表程序
|
||||||
|
additionalProperties:
|
||||||
|
key: alist
|
||||||
|
name: Alist
|
||||||
|
tags:
|
||||||
|
- WebSite
|
||||||
|
- Storage
|
||||||
|
- Local
|
||||||
|
shortDescZh: 一个支持多种存储的文件列表程序
|
||||||
|
shortDescEn: A file list program that supports multiple storage methods
|
||||||
|
type: website
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://alist.nn.ci/
|
||||||
|
github: https://github.com/alist-org/alist/
|
||||||
|
document: https://alist.nn.ci/guide/
|
BIN
apps/alist-aria2/logo.png
Normal file
After Width: | Height: | Size: 14 KiB |
74
apps/alist-ffmpeg/3.35.0/data.yml
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "/home/alist"
|
||||||
|
edit: true
|
||||||
|
envKey: ALIST_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 5244
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelZh: WebUI 端口
|
||||||
|
labelEn: WebUI port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: JWT_SECRET
|
||||||
|
labelZh: 加密密钥
|
||||||
|
labelEn: Encryption key
|
||||||
|
required: false
|
||||||
|
type: password
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: SITE_URL
|
||||||
|
labelZh: 站点 URL
|
||||||
|
labelEn: Site URL
|
||||||
|
required: false
|
||||||
|
rule: paramExtUrl
|
||||||
|
type: text
|
||||||
|
- default: 48
|
||||||
|
edit: true
|
||||||
|
envKey: TOKEN_EXPIRES_IN
|
||||||
|
labelZh: 登录过期时间 (小时)
|
||||||
|
labelEn: Login expiration time (hours)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: 0
|
||||||
|
edit: true
|
||||||
|
envKey: DELAYED_START
|
||||||
|
labelZh: 延时启动 (秒)
|
||||||
|
labelEn: Delayed start (seconds)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: 0
|
||||||
|
edit: true
|
||||||
|
envKey: max_connections
|
||||||
|
labelZh: 最大连接数
|
||||||
|
labelEn: Maximum connections
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_1
|
||||||
|
labelEn: Custom mount directory 1
|
||||||
|
labelZh: 自定义挂载目录 1
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_2
|
||||||
|
labelEn: Custom mount directory 2
|
||||||
|
labelZh: 自定义挂载目录 2
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_3
|
||||||
|
labelEn: Custom mount directory 3
|
||||||
|
labelZh: 自定义挂载目录 3
|
||||||
|
required: false
|
||||||
|
type: text
|
28
apps/alist-ffmpeg/3.35.0/docker-compose.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
version: "3.8"
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
services:
|
||||||
|
alist:
|
||||||
|
image: xhofe/alist:v3.35.0-ffmpeg
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:5244
|
||||||
|
env_file:
|
||||||
|
- /etc/1panel/envs/global.env
|
||||||
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
|
volumes:
|
||||||
|
- ${ALIST_ROOT_PATH}/data:/opt/alist/data
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||||
|
environment:
|
||||||
|
- PUID=0
|
||||||
|
- PGID=0
|
||||||
|
- UMASK=022
|
||||||
|
- FORCE=false
|
14
apps/alist-ffmpeg/3.35.0/scripts/init.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/alist-ffmpeg/3.35.0/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
14
apps/alist-ffmpeg/3.35.0/scripts/upgrade.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
84
apps/alist-ffmpeg/README.md
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
# AList
|
||||||
|
|
||||||
|
一个支持多种存储的文件列表程序
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 特性
|
||||||
|
|
||||||
|
+ 使用简单
|
||||||
|
+ AList 从一开始就设计为易于安装,并且可以在所有平台上使用。
|
||||||
|
|
||||||
|
+ 多种存储
|
||||||
|
+ AList 支持多个存储提供商,包括本地存储、阿里云盘、OneDrive、Google Drive 等,且易于拓展。
|
||||||
|
|
||||||
|
+ 支持 WebDAV
|
||||||
|
+ AList 支持所有 WebDAV 存储,这是一种用于访问文件的标准。
|
||||||
|
|
||||||
|
+ 黑暗模式
|
||||||
|
+ 自由切换明暗模式
|
||||||
|
|
||||||
|
+ 受保护的路由
|
||||||
|
+ 为特定路径添加密码保护和身份验证
|
||||||
|
|
||||||
|
+ 文件预览
|
||||||
|
+ 支持视频、音频、文档、PDF、图片预览等,甚至支持 ipa 安装
|
||||||
|
|
||||||
|
+ 打包下载/批量下载
|
||||||
|
+ 使用浏览器的 stream api 支持打包下载,无需使用服务器 / 使用Aria2进行批量下载支持文件夹
|
||||||
|
|
||||||
|
+ 单点登录
|
||||||
|
+ 使用单点登录快速登录AList
|
||||||
|
|
||||||
|
+ 自动注册AList帐号
|
||||||
|
+ 使用单点登录自动注册为AList帐号快速注册
|
||||||
|
|
||||||
|
+ 离线下载
|
||||||
|
+ 将种子内容离线下载到指定的目录內,需要苛刻的网络环境
|
||||||
|
|
||||||
|
+ 保险箱加密/解密 文件
|
||||||
|
+ 任何人都可以安全地将加密数据存储在远程存储提供商上。数据存储在保险箱中,提供商只能看到保险箱,看不到您的数据。
|
||||||
|
|
||||||
|
+ 更多新功能
|
||||||
|
+ 包括文本编辑器、README/HTML 渲染、文件永久链接、Cloudflare Workers 代理等
|
||||||
|
|
||||||
|
## 安装说明
|
||||||
|
|
||||||
|
当前版本预装 `ffmpeg` 用于封面截取
|
||||||
|
|
||||||
|
> 默认用户名:`admin`
|
||||||
|
>
|
||||||
|
> 默认密码:首次启动,可通过日志查询,或重置密码
|
||||||
|
|
||||||
|
### 重置密码
|
||||||
|
|
||||||
|
+ 随机生成一个密码
|
||||||
|
|
||||||
|
```shell
|
||||||
|
alist admin random
|
||||||
|
```
|
||||||
|
|
||||||
|
+ 设置指定密码
|
||||||
|
|
||||||
|
```shell
|
||||||
|
alist admin set {PASSWORD}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 反向代理
|
||||||
|
|
||||||
|
> Nginx 配置示例
|
||||||
|
|
||||||
|
```conf
|
||||||
|
location / {
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header Host $host:$server_port;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Range $http_range;
|
||||||
|
proxy_set_header If-Range $http_if_range;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_pass http://127.0.0.1:5244;
|
||||||
|
# 文件最大上传大小 20GB
|
||||||
|
client_max_body_size 20000m;
|
||||||
|
}
|
||||||
|
```
|
18
apps/alist-ffmpeg/data.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Alist
|
||||||
|
title: 文件列表程序
|
||||||
|
description: 一个支持多种存储的文件列表程序
|
||||||
|
additionalProperties:
|
||||||
|
key: alist
|
||||||
|
name: Alist
|
||||||
|
tags:
|
||||||
|
- WebSite
|
||||||
|
- Storage
|
||||||
|
- Local
|
||||||
|
shortDescZh: 一个支持多种存储的文件列表程序
|
||||||
|
shortDescEn: A file list program that supports multiple storage methods
|
||||||
|
type: website
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://alist.nn.ci/
|
||||||
|
github: https://github.com/alist-org/alist/
|
||||||
|
document: https://alist.nn.ci/guide/
|
BIN
apps/alist-ffmpeg/logo.png
Normal file
After Width: | Height: | Size: 14 KiB |
74
apps/alist/3.35.0/data.yml
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "/home/alist"
|
||||||
|
edit: true
|
||||||
|
envKey: ALIST_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 5244
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelZh: WebUI 端口
|
||||||
|
labelEn: WebUI port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: JWT_SECRET
|
||||||
|
labelZh: 加密密钥
|
||||||
|
labelEn: Encryption key
|
||||||
|
required: false
|
||||||
|
type: password
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: SITE_URL
|
||||||
|
labelZh: 站点 URL
|
||||||
|
labelEn: Site URL
|
||||||
|
required: false
|
||||||
|
rule: paramExtUrl
|
||||||
|
type: text
|
||||||
|
- default: 48
|
||||||
|
edit: true
|
||||||
|
envKey: TOKEN_EXPIRES_IN
|
||||||
|
labelZh: 登录过期时间 (小时)
|
||||||
|
labelEn: Login expiration time (hours)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: 0
|
||||||
|
edit: true
|
||||||
|
envKey: DELAYED_START
|
||||||
|
labelZh: 延时启动 (秒)
|
||||||
|
labelEn: Delayed start (seconds)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: 0
|
||||||
|
edit: true
|
||||||
|
envKey: max_connections
|
||||||
|
labelZh: 最大连接数
|
||||||
|
labelEn: Maximum connections
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_1
|
||||||
|
labelEn: Custom mount directory 1
|
||||||
|
labelZh: 自定义挂载目录 1
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_2
|
||||||
|
labelEn: Custom mount directory 2
|
||||||
|
labelZh: 自定义挂载目录 2
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_3
|
||||||
|
labelEn: Custom mount directory 3
|
||||||
|
labelZh: 自定义挂载目录 3
|
||||||
|
required: false
|
||||||
|
type: text
|
28
apps/alist/3.35.0/docker-compose.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
version: "3.8"
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
services:
|
||||||
|
alist:
|
||||||
|
image: xhofe/alist:v3.35.0
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:5244
|
||||||
|
env_file:
|
||||||
|
- /etc/1panel/envs/global.env
|
||||||
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
|
volumes:
|
||||||
|
- ${ALIST_ROOT_PATH}/data:/opt/alist/data
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||||
|
environment:
|
||||||
|
- PUID=0
|
||||||
|
- PGID=0
|
||||||
|
- UMASK=022
|
||||||
|
- FORCE=false
|
14
apps/alist/3.35.0/scripts/init.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/alist/3.35.0/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
14
apps/alist/3.35.0/scripts/upgrade.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
82
apps/alist/README.md
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
# AList
|
||||||
|
|
||||||
|
一个支持多种存储的文件列表程序
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 特性
|
||||||
|
|
||||||
|
+ 使用简单
|
||||||
|
+ AList 从一开始就设计为易于安装,并且可以在所有平台上使用。
|
||||||
|
|
||||||
|
+ 多种存储
|
||||||
|
+ AList 支持多个存储提供商,包括本地存储、阿里云盘、OneDrive、Google Drive 等,且易于拓展。
|
||||||
|
|
||||||
|
+ 支持 WebDAV
|
||||||
|
+ AList 支持所有 WebDAV 存储,这是一种用于访问文件的标准。
|
||||||
|
|
||||||
|
+ 黑暗模式
|
||||||
|
+ 自由切换明暗模式
|
||||||
|
|
||||||
|
+ 受保护的路由
|
||||||
|
+ 为特定路径添加密码保护和身份验证
|
||||||
|
|
||||||
|
+ 文件预览
|
||||||
|
+ 支持视频、音频、文档、PDF、图片预览等,甚至支持 ipa 安装
|
||||||
|
|
||||||
|
+ 打包下载/批量下载
|
||||||
|
+ 使用浏览器的 stream api 支持打包下载,无需使用服务器 / 使用Aria2进行批量下载支持文件夹
|
||||||
|
|
||||||
|
+ 单点登录
|
||||||
|
+ 使用单点登录快速登录AList
|
||||||
|
|
||||||
|
+ 自动注册AList帐号
|
||||||
|
+ 使用单点登录自动注册为AList帐号快速注册
|
||||||
|
|
||||||
|
+ 离线下载
|
||||||
|
+ 将种子内容离线下载到指定的目录內,需要苛刻的网络环境
|
||||||
|
|
||||||
|
+ 保险箱加密/解密 文件
|
||||||
|
+ 任何人都可以安全地将加密数据存储在远程存储提供商上。数据存储在保险箱中,提供商只能看到保险箱,看不到您的数据。
|
||||||
|
|
||||||
|
+ 更多新功能
|
||||||
|
+ 包括文本编辑器、README/HTML 渲染、文件永久链接、Cloudflare Workers 代理等
|
||||||
|
|
||||||
|
## 安装说明
|
||||||
|
|
||||||
|
> 默认用户名:`admin`
|
||||||
|
>
|
||||||
|
> 默认密码:首次启动,可通过日志查询,或重置密码
|
||||||
|
|
||||||
|
### 重置密码
|
||||||
|
|
||||||
|
+ 随机生成一个密码
|
||||||
|
|
||||||
|
```shell
|
||||||
|
alist admin random
|
||||||
|
```
|
||||||
|
|
||||||
|
+ 设置指定密码
|
||||||
|
|
||||||
|
```shell
|
||||||
|
alist admin set {PASSWORD}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 反向代理
|
||||||
|
|
||||||
|
> Nginx 配置示例
|
||||||
|
|
||||||
|
```conf
|
||||||
|
location / {
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header Host $host:$server_port;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Range $http_range;
|
||||||
|
proxy_set_header If-Range $http_if_range;
|
||||||
|
proxy_redirect off;
|
||||||
|
proxy_pass http://127.0.0.1:5244;
|
||||||
|
# 文件最大上传大小 20GB
|
||||||
|
client_max_body_size 20000m;
|
||||||
|
}
|
||||||
|
```
|
18
apps/alist/data.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Alist
|
||||||
|
title: 文件列表程序
|
||||||
|
description: 一个支持多种存储的文件列表程序
|
||||||
|
additionalProperties:
|
||||||
|
key: alist
|
||||||
|
name: Alist
|
||||||
|
tags:
|
||||||
|
- WebSite
|
||||||
|
- Storage
|
||||||
|
- Local
|
||||||
|
shortDescZh: 一个支持多种存储的文件列表程序
|
||||||
|
shortDescEn: A file list program that supports multiple storage methods
|
||||||
|
type: website
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://alist.nn.ci/
|
||||||
|
github: https://github.com/alist-org/alist/
|
||||||
|
document: https://alist.nn.ci/guide/
|
BIN
apps/alist/logo.png
Normal file
After Width: | Height: | Size: 14 KiB |
38
apps/bark/2.1.5/data.yml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "/home/bark"
|
||||||
|
edit: true
|
||||||
|
envKey: BARK_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 8080
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelZh: WebUI 端口
|
||||||
|
labelEn: WebUI port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: BARK_SERVER_DSN
|
||||||
|
labelEn: Database URL
|
||||||
|
labelZh: 数据库链接
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: BARK_SERVER_BASIC_AUTH_USER
|
||||||
|
labelEn: Basic Auth User
|
||||||
|
labelZh: 用户名 (服务基础验证)
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: BARK_SERVER_BASIC_AUTH_PASSWORD
|
||||||
|
labelEn: Basic Auth Password
|
||||||
|
labelZh: 密码 (服务基础验证)
|
||||||
|
required: false
|
||||||
|
type: text
|
27
apps/bark/2.1.5/docker-compose.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
bark:
|
||||||
|
image: finab/bark-server:v2.1.5
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:8080
|
||||||
|
env_file:
|
||||||
|
- /etc/1panel/envs/global.env
|
||||||
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
|
volumes:
|
||||||
|
- ${BARK_ROOT_PATH}/data:/data
|
||||||
|
environment:
|
||||||
|
- BARK_SERVER_ADDRESS=0.0.0.0:8080
|
||||||
|
- BARK_SERVER_URL_PREFIX=/
|
||||||
|
- BARK_SERVER_DATA_DIR=/data
|
||||||
|
- BARK_SERVER_SERVERLESS=false
|
14
apps/bark/2.1.5/scripts/init.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/bark/2.1.5/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
14
apps/bark/2.1.5/scripts/upgrade.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
119
apps/bark/README.md
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
# Bark
|
||||||
|
|
||||||
|
一款注重隐私、安全可控的自定义通知推送工具。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 特性
|
||||||
|
|
||||||
|
+ 免费、轻量!简单调用接口即可给自己的iPhone发送推送。
|
||||||
|
+ 依赖苹果APNs,及时、稳定、可靠
|
||||||
|
+ 不会消耗设备的电量, 基于系统推送服务与推送扩展,APP本体并不需要运行。
|
||||||
|
+ 隐私安全,可以通过一些方式确保包含作者本人在内的所有人都无法窃取你的隐私。
|
||||||
|
|
||||||
|
## 安装说明
|
||||||
|
|
||||||
|
### `数据库链接` 配置
|
||||||
|
|
||||||
|
MySQL DSN 数据库链接
|
||||||
|
|
||||||
|
格式:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
user:pass@tcp(host)/dbname
|
||||||
|
|
||||||
|
# 例如
|
||||||
|
root:123456@tcp(127.0.0.1:3306)/bark
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 参数说明
|
||||||
|
|
||||||
|
| 参数 | 说明 |
|
||||||
|
|--------|--------|
|
||||||
|
| user | 数据库用户名 |
|
||||||
|
| pass | 数据库密码 |
|
||||||
|
| host | 数据库地址 |
|
||||||
|
| dbname | 数据库名称 |
|
||||||
|
|
||||||
|
使用其他端口时 `host` 格式为 `host:port`
|
||||||
|
|
||||||
|
## [URL格式](https://bark.day.app/#/tutorial?id=url格式)
|
||||||
|
|
||||||
|
URL由推送key、参数 title、参数 body 组成。有下面两种组合方式
|
||||||
|
|
||||||
|
#### 服务基础验证
|
||||||
|
|
||||||
|
可选项,验证方式为 `Basic`,具体格式为 `Basic base64(username:password)`,其中 `base64(username:password)`
|
||||||
|
为 `username:password` 的 `base64` 编码结果。
|
||||||
|
|
||||||
|
+ 用户名 (服务基础验证)
|
||||||
|
+ 密码 (服务基础验证)
|
||||||
|
|
||||||
|
```
|
||||||
|
/:key/:body
|
||||||
|
/:key/:title/:body
|
||||||
|
```
|
||||||
|
|
||||||
|
## [请求方式](https://bark.day.app/#/tutorial?id=请求方式)
|
||||||
|
|
||||||
|
##### [GET 请求参数拼接在 URL 后面,例如:](https://bark.day.app/#/tutorial?id=get-请求参数拼接在-url-后面,例如:)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl https://api.day.app/your_key/推送内容?group=分组©=复制
|
||||||
|
```
|
||||||
|
|
||||||
|
*手动拼接参数到URL上时,请注意URL编码问题,可以参考阅读[常见问题:URL编码](https://bark.day.app/#/faq?id=推送特殊字符导致推送失败,比如-推送内容包含链接,或推送异常-比如-变成空格)*
|
||||||
|
|
||||||
|
##### [POST 请求参数放在请求体中,例如:](https://bark.day.app/#/tutorial?id=post-请求参数放在请求体中,例如:)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -X POST https://api.day.app/your_key \
|
||||||
|
-d'body=推送内容&group=分组©=复制'
|
||||||
|
```
|
||||||
|
|
||||||
|
##### [POST 请求支持JSON,例如:](https://bark.day.app/#/tutorial?id=post-请求支持json,例如:)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -X "POST" "https://api.day.app/your_key" \
|
||||||
|
-H 'Content-Type: application/json; charset=utf-8' \
|
||||||
|
-d $'{
|
||||||
|
"body": "Test Bark Server",
|
||||||
|
"title": "Test Title",
|
||||||
|
"badge": 1,
|
||||||
|
"category": "myNotificationCategory",
|
||||||
|
"sound": "minuet.caf",
|
||||||
|
"icon": "https://day.app/assets/images/avatar.jpg",
|
||||||
|
"group": "test",
|
||||||
|
"url": "https://mritd.com"
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
##### [JSON 请求 key 可以放进请求体中,URL 路径须为 /push,例如](https://bark.day.app/#/tutorial?id=json-请求-key-可以放进请求体中url-路径须为-push,例如)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -X "POST" "https://api.day.app/push" \
|
||||||
|
-H 'Content-Type: application/json; charset=utf-8' \
|
||||||
|
-d $'{
|
||||||
|
"body": "Test Bark Server",
|
||||||
|
"title": "Test Title",
|
||||||
|
"device_key": "your_key"
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
## [请求参数](https://bark.day.app/#/tutorial?id=请求参数)
|
||||||
|
|
||||||
|
支持的参数列表,具体效果可在APP内预览。
|
||||||
|
|
||||||
|
| 参数 | 说明 |
|
||||||
|
|-----------|---------------------------------------------------------------------------------------------|
|
||||||
|
| title | 推送标题 |
|
||||||
|
| body | 推送内容 |
|
||||||
|
| level | 推送中断级别。 active:默认值,系统会立即亮屏显示通知 timeSensitive:时效性通知,可在专注状态下显示通知。 passive:仅将通知添加到通知列表,不会亮屏提醒。 |
|
||||||
|
| badge | 推送角标,可以是任意数字 |
|
||||||
|
| autoCopy | iOS14.5以下自动复制推送内容,iOS14.5以上需手动长按推送或下拉推送 |
|
||||||
|
| copy | 复制推送时,指定复制的内容,不传此参数将复制整个推送内容。 |
|
||||||
|
| sound | 可以为推送设置不同的铃声 |
|
||||||
|
| icon | 为推送设置自定义图标,设置的图标将替换默认Bark图标。 图标会自动缓存在本机,相同的图标 URL 仅下载一次。 |
|
||||||
|
| group | 对消息进行分组,推送将按group分组显示在通知中心中。 也可在历史消息列表中选择查看不同的群组。 |
|
||||||
|
| isArchive | 传 1 保存推送,传其他的不保存推送,不传按APP内设置来决定是否保存。 |
|
||||||
|
| url | 点击推送时,跳转的URL ,支持URL Scheme 和 Universal Link |
|
19
apps/bark/data.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Bark
|
||||||
|
title: 通知推送工具
|
||||||
|
description: 通知推送工具
|
||||||
|
additionalProperties:
|
||||||
|
key: bark
|
||||||
|
name: Bark
|
||||||
|
tags:
|
||||||
|
- WebSite
|
||||||
|
- Middleware
|
||||||
|
- Tool
|
||||||
|
- Local
|
||||||
|
shortDescZh: 通知推送工具
|
||||||
|
shortDescEn: Notification push tool
|
||||||
|
type: website
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://bark.day.app/
|
||||||
|
github: https://github.com/finb/bark/
|
||||||
|
document: https://bark.day.app/
|
BIN
apps/bark/logo.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
19
apps/cookie-cloud/README.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# CookieCloud
|
||||||
|
|
||||||
|
CookieCloud 是一个用于将 cookie 与您的自托管服务器同步的小工具,允许您将浏览器 cookie
|
||||||
|
和本地存储同步到您的手机和云端。它具有内置的端到端加密功能,并允许您设置同步间隔。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 浏览器插件
|
||||||
|
|
||||||
|
+ [Edge Store](https://microsoftedge.microsoft.com/addons/detail/cookiecloud/bffenpfpjikaeocaihdonmgnjjdpjkeo)
|
||||||
|
|
||||||
|
+ [Chrome Store](https://chrome.google.com/webstore/detail/cookiecloud/ffjiejobkoibkjlhjnlgmcnnigeelbdl)
|
||||||
|
|
||||||
|
## FAQ 常问问题
|
||||||
|
|
||||||
|
+ 目前,同步只是单向的,这意味着一个浏览器可以上传,而另一个浏览器可以下载。
|
||||||
|
+ 该浏览器扩展正式支持 Chrome 和 Edge。其他基于 Chromium 的浏览器可能可以工作,但尚未经过测试。使用源代码 cd extension &&
|
||||||
|
pnpm build --target=firefox-mv2 自行编译Firefox版本。
|
||||||
|
+ 请注意,Firefox 的 cookie 格式与 Chrome 的不同,并且它们不能混合。
|
19
apps/cookie-cloud/data.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: CookieCloud
|
||||||
|
title: Cookie 同步
|
||||||
|
description: 自架服务器同步Cookie的小工具
|
||||||
|
additionalProperties:
|
||||||
|
key: cookie-cloud
|
||||||
|
name: CookieCloud
|
||||||
|
tags:
|
||||||
|
- WebSite
|
||||||
|
- Tool
|
||||||
|
- Runtime
|
||||||
|
- Local
|
||||||
|
shortDescZh: 自架服务器同步Cookie的小工具
|
||||||
|
shortDescEn: A small tool to synchronize cookies on self-built servers
|
||||||
|
type: website
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://github.com/easychen/CookieCloud/
|
||||||
|
github: https://github.com/easychen/CookieCloud/
|
||||||
|
document: https://github.com/easychen/CookieCloud/
|
24
apps/cookie-cloud/latest/data.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: 8088
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelEn: Port
|
||||||
|
labelZh: 端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: "/home/cookie-cloud"
|
||||||
|
edit: true
|
||||||
|
envKey: COOKIECLOUD_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "/"
|
||||||
|
edit: true
|
||||||
|
envKey: API_ROOT
|
||||||
|
labelZh: 网站路径
|
||||||
|
labelEn: Web path
|
||||||
|
required: true
|
||||||
|
type: text
|
21
apps/cookie-cloud/latest/docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
cookie-cloud:
|
||||||
|
image: easychen/cookiecloud:latest
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:8088
|
||||||
|
volumes:
|
||||||
|
- ${COOKIECLOUD_ROOT_PATH}/data:/data/api/data
|
||||||
|
env_file:
|
||||||
|
- .env
|
10
apps/cookie-cloud/latest/scripts/init.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/cookie-cloud/latest/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/cookie-cloud/latest/scripts/upgrade.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
BIN
apps/cookie-cloud/logo.png
Normal file
After Width: | Height: | Size: 35 KiB |
39
apps/deeplx/0.9.5.1/data.yml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: 1188
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelZh: API 端口
|
||||||
|
labelEn: API Port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: TOKEN
|
||||||
|
labelZh: 访问令牌以保护您的 API
|
||||||
|
labelEn: Access Token to protect your API
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: AUTHKEY
|
||||||
|
labelZh: DeepL官方提供的API Auth Key
|
||||||
|
labelEn: Official API Auth Key provided by DeepL
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: DL_SESSION
|
||||||
|
labelZh: DeepL Pro 帐户 dl_session cookie
|
||||||
|
labelEn: DeepL Pro account dl_session cookie
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: PROXY
|
||||||
|
labelZh: http代理服务器地址
|
||||||
|
labelEn: http proxy server address
|
||||||
|
required: false
|
||||||
|
rule: paramExtUrl
|
||||||
|
type: text
|
21
apps/deeplx/0.9.5.1/docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
deeplx:
|
||||||
|
image: qyg2297248353/deeplx:v0.9.5.1
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP:-1188}
|
||||||
|
environment:
|
||||||
|
- PORT=${PANEL_APP_PORT_HTTP:-1188}
|
||||||
|
env_file:
|
||||||
|
- .env
|
10
apps/deeplx/0.9.5.1/scripts/init.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/deeplx/0.9.5.1/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/deeplx/0.9.5.1/scripts/upgrade.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
115
apps/deeplx/README.md
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
# DeepLX
|
||||||
|
|
||||||
|
强大的 DeepL 翻译 API
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 简介
|
||||||
|
|
||||||
|
DeepLX 最初由 zu1k 命名并发布,尽管 zu1k 此后已停止维护它并删除了相关存储库。
|
||||||
|
|
||||||
|
感谢zu1k的贡献。
|
||||||
|
|
||||||
|
这是zu1k设计的DeepLX Docker镜像的备份,没有任何修改。
|
||||||
|
|
||||||
|
## 安装说明
|
||||||
|
|
||||||
|
### http代理服务器地址
|
||||||
|
|
||||||
|
> 基本格式
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# 无鉴权代理
|
||||||
|
http://127.0.0.1:7890
|
||||||
|
# 有鉴权代理
|
||||||
|
http://<username>:<password>@127.0.0.1:7890
|
||||||
|
```
|
||||||
|
|
||||||
|
### 访问令牌以保护您的 API
|
||||||
|
|
||||||
|
> 请注意,如果您不使用访问令牌,您的 API 可能会被滥用。
|
||||||
|
|
||||||
|
接口调用时,您可以使用 `X-Access-Token` 请求头来传递访问令牌。
|
||||||
|
|
||||||
|
### DeepL官方提供的API Auth Key
|
||||||
|
|
||||||
|
开通DeepL API后,您将获得一个API Auth Key,您可以使用它来访问DeepL API。
|
||||||
|
|
||||||
|
### DeepL Pro 帐户 dl_session cookie
|
||||||
|
|
||||||
|
如果您有DeepL Pro帐户,您可以使用 `dl_session` cookie 来访问DeepL API。
|
||||||
|
|
||||||
|
## 接口简介
|
||||||
|
|
||||||
|
### 免费端点
|
||||||
|
|
||||||
|
模拟DeepL iOS客户端发起翻译请求。无限制,但在一定时间内频繁请求会导致429错误。
|
||||||
|
|
||||||
|
接口:`/translate`
|
||||||
|
请求方式:POST
|
||||||
|
请求头:
|
||||||
|
|
||||||
|
| Header | Description | Value |
|
||||||
|
|:----------------|:--------------------------------------|:---------------------------|
|
||||||
|
| `Content-Type` | The content type of the request body. | `application/json` |
|
||||||
|
| `Authorization` | The access token to protect your API. | `Bearer your_access_token` |
|
||||||
|
|
||||||
|
> 如果无法使用 `Authorization` 请求头,您可以使用 `URL Params` 传递 `Authorization`。
|
||||||
|
>
|
||||||
|
> 例如:`/translate?token=your_access_token`
|
||||||
|
|
||||||
|
请求体:
|
||||||
|
|
||||||
|
| 参数名 | 字段类型 | 描述 | 是否必须 |
|
||||||
|
|:--------------|:---------|:--------|:-------|
|
||||||
|
| `text` | `string` | 待翻译字段。 | `true` |
|
||||||
|
| `source_lang` | `string` | 源语言代码 | `true` |
|
||||||
|
| `target_lang` | `string` | 目标语言代码。 | `true` |
|
||||||
|
|
||||||
|
请求体 JSON 示例:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"text": "你听说过这个吗?",
|
||||||
|
"source_lang": "ZH",
|
||||||
|
"target_lang": "EN"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
响应体:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"alternatives": [
|
||||||
|
"Did you hear about this?",
|
||||||
|
"You've heard about this?",
|
||||||
|
"You've heard of this?"
|
||||||
|
],
|
||||||
|
"code": 200,
|
||||||
|
"data": "Have you heard about this?",
|
||||||
|
"id": 8356681003,
|
||||||
|
"method": "Free",
|
||||||
|
"source_lang": "ZH",
|
||||||
|
"target_lang": "EN"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 专业端点
|
||||||
|
|
||||||
|
模拟 DeepL 专业版账户发起翻译请求。无限制,可有效避免 429 问题,但需要提供专业账户的 dl_session 参数,否则无法使用。
|
||||||
|
|
||||||
|
接口:`/v1/translate`
|
||||||
|
请求方式:POST
|
||||||
|
|
||||||
|
> 其他参数与免费端点相同。
|
||||||
|
|
||||||
|
### 官方端点
|
||||||
|
|
||||||
|
模拟 DeepL 官方 API 发起翻译请求。无限制,但在一定时间内频繁请求将导致 429 错误。
|
||||||
|
|
||||||
|
接口:`/v2/translate`
|
||||||
|
请求方式:POST
|
||||||
|
|
||||||
|
> 其他参数与免费端点相同。
|
||||||
|
>
|
||||||
|
> 更多官方API配置请参考 [DeepL 官方文档](https://developers.deepl.com/docs/api-reference/translate)
|
19
apps/deeplx/data.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: DeepLX
|
||||||
|
title: DeepL 免费API
|
||||||
|
type: 实用工具
|
||||||
|
description: DeepL 免费API
|
||||||
|
additionalProperties:
|
||||||
|
key: deeplx
|
||||||
|
name: DeepLX
|
||||||
|
tags:
|
||||||
|
- WebSite
|
||||||
|
- Middleware
|
||||||
|
- Local
|
||||||
|
shortDescZh: DeepL 免费API
|
||||||
|
shortDescEn: DeepL Free API
|
||||||
|
type: tool
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://www.deepl.com/
|
||||||
|
github: https://github.com/OwO-Network/DeepLX
|
||||||
|
document: https://deeplx.owo.network/
|
BIN
apps/deeplx/logo.png
Normal file
After Width: | Height: | Size: 29 KiB |
17
apps/dockge/1.4.2/data.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "/home/dockge"
|
||||||
|
edit: true
|
||||||
|
envKey: DOCKGE_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 5001
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelZh: WebUI 端口
|
||||||
|
labelEn: WebUI port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
23
apps/dockge/1.4.2/docker-compose.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
dockge:
|
||||||
|
image: louislam/dockge:1.4.2
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:5001
|
||||||
|
volumes:
|
||||||
|
- ${DOCKGE_ROOT_PATH}/data:/app/data
|
||||||
|
- ${DOCKGE_ROOT_PATH}/stacks:/opt/dockge/stacks
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
- DOCKGE_STACKS_DIR=/opt/dockge/stacks
|
10
apps/dockge/1.4.2/scripts/init.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/dockge/1.4.2/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/dockge/1.4.2/scripts/upgrade.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
19
apps/dockge/README.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Dockge
|
||||||
|
|
||||||
|
一个花哨、易用、反应灵敏的自托管 docker compose.yaml 堆栈型管理器。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 特性
|
||||||
|
|
||||||
|
+ 🧑💼 管理您的 compose.yaml 文件
|
||||||
|
+ 创建/编辑/启动/停止/重新启动/删除
|
||||||
|
+ 更新 Docker 镜像
|
||||||
|
+ ⌨️ compose.yaml 的交互式编辑器
|
||||||
|
+ 🦦 交互式网络终端
|
||||||
|
+ 🕷️ (1.4.0 🆕) 多代理支持 - 您可以在一个界面中管理来自不同 Docker 主机的多个堆栈
|
||||||
|
+ 🏪 将 docker run ... 命令转换为 compose.yaml
|
||||||
|
+ 📙 基于文件的结构 - Dockge 不会劫持您的撰写文件,它们会像往常一样存储在您的驱动器上。您可以使用普通的 docker compose
|
||||||
|
命令与它们交互
|
||||||
|
+ 🚄 反应式 - 一切都是响应式的。进度(Pull/Up/Down)和终端输出是实时的
|
||||||
|
+ 🐣 易于使用且精美的 UI - 如果您喜欢 Uptime Kuma 的 UI/UX,您也会喜欢这个
|
19
apps/dockge/data.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Dockge
|
||||||
|
title: 面向堆栈的管理器
|
||||||
|
description: 面向堆栈的管理器
|
||||||
|
additionalProperties:
|
||||||
|
key: dockge
|
||||||
|
name: Dockge
|
||||||
|
tags:
|
||||||
|
- WebSite
|
||||||
|
- Middleware
|
||||||
|
- Tool
|
||||||
|
- Local
|
||||||
|
shortDescZh: 面向堆栈的管理器
|
||||||
|
shortDescEn: Stack-oriented manager
|
||||||
|
type: website
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://dockge.kuma.pet/
|
||||||
|
github: https://github.com/louislam/dockge/
|
||||||
|
document: https://github.com/louislam/dockge/wiki/
|
BIN
apps/dockge/logo.png
Normal file
After Width: | Height: | Size: 28 KiB |
94
apps/elastic/8.12.0-cluster/data.yml
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "docker-cluster"
|
||||||
|
edit: true
|
||||||
|
envKey: CLUSTER_NAME
|
||||||
|
labelEn: cluster name
|
||||||
|
labelZh: 集群名称
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "elastic-net"
|
||||||
|
edit: true
|
||||||
|
envKey: CLUSTER_NETWORK
|
||||||
|
labelEn: cluster network
|
||||||
|
labelZh: 集群网络
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: ELASTIC_PASSWORD
|
||||||
|
labelEn: Password for the 'elastic' user, Numbers and letters
|
||||||
|
labelZh: elastic 用户的密码 数字与字母组合
|
||||||
|
required: true
|
||||||
|
random: true
|
||||||
|
type: password
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: KIBANA_PASSWORD
|
||||||
|
labelEn: Password for the 'kibana_system' user, Numbers and letters
|
||||||
|
labelZh: kibana_system 用户的密码 数字与字母组合
|
||||||
|
required: true
|
||||||
|
random: true
|
||||||
|
type: password
|
||||||
|
- default: "/home/elastic/cluster"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_ROOT_PATH
|
||||||
|
labelEn: data persistence root path
|
||||||
|
labelZh: 数据持久化根路径
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 1073741824
|
||||||
|
edit: true
|
||||||
|
envKey: MEM_LIMIT
|
||||||
|
labelEn: Increase or decrease based on the available host memory (in bytes)
|
||||||
|
labelZh: 根据可用主机内存增加或减少(以字节为单位)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: "9200"
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTPS
|
||||||
|
labelEn: Port to expose Elasticsearch HTTP API to the host
|
||||||
|
labelZh: 开放API的端口
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: 5601
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelEn: Port to expose Kibana to the host
|
||||||
|
labelZh: Kibana面板端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: "9300"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_COMMUNICATION_PORT
|
||||||
|
labelEn: Port to expose Elasticsearch communication to the host
|
||||||
|
labelZh: Elasticsearch通讯端口 9300
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: "512m"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_JAVA_OPTS_XMS
|
||||||
|
labelEn: JVM memory allocation pool
|
||||||
|
labelZh: JVM内存分配池 初始化内存
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "512m"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_JAVA_OPTS_XMX
|
||||||
|
labelEn: JVM memory allocation pool
|
||||||
|
labelZh: JVM内存分配池 运行内存
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "true"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_XPACK_SECURITY_ENABLED
|
||||||
|
labelEn: Enable security verification (recommended)
|
||||||
|
labelZh: 证书安全验证(推荐开启)
|
||||||
|
required: true
|
||||||
|
type: select
|
||||||
|
values:
|
||||||
|
- label: "开启"
|
||||||
|
value: "true"
|
||||||
|
- label: "关闭"
|
||||||
|
value: "false"
|
289
apps/elastic/8.12.0-cluster/docker-compose.yml
Normal file
@ -0,0 +1,289 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
${DOCKER_NET}:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
elastic-init:
|
||||||
|
container_name: elastic-init
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
|
||||||
|
networks:
|
||||||
|
- ${CLUSTER_NETWORK}
|
||||||
|
volumes:
|
||||||
|
- ${ES_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
|
||||||
|
user: "0"
|
||||||
|
command: >
|
||||||
|
bash -c '
|
||||||
|
if [ x${ELASTIC_PASSWORD} == x ]; then
|
||||||
|
echo "Set the ELASTIC_PASSWORD environment variable in the .env file";
|
||||||
|
exit 1;
|
||||||
|
elif [ x${KIBANA_PASSWORD} == x ]; then
|
||||||
|
echo "Set the KIBANA_PASSWORD environment variable in the .env file";
|
||||||
|
exit 1;
|
||||||
|
fi;
|
||||||
|
if [ ! -f config/certs/ca.zip ]; then
|
||||||
|
echo "Creating CA";
|
||||||
|
bin/elasticsearch-certutil ca --silent --pem -out config/certs/ca.zip;
|
||||||
|
unzip config/certs/ca.zip -d config/certs;
|
||||||
|
fi;
|
||||||
|
if [ ! -f config/certs/certs.zip ]; then
|
||||||
|
echo "Creating certs";
|
||||||
|
echo -ne \
|
||||||
|
"instances:\n"\
|
||||||
|
" - name: es01\n"\
|
||||||
|
" dns:\n"\
|
||||||
|
" - es01\n"\
|
||||||
|
" - localhost\n"\
|
||||||
|
" ip:\n"\
|
||||||
|
" - 127.0.0.1\n"\
|
||||||
|
" - name: es02\n"\
|
||||||
|
" dns:\n"\
|
||||||
|
" - es02\n"\
|
||||||
|
" - localhost\n"\
|
||||||
|
" ip:\n"\
|
||||||
|
" - 127.0.0.1\n"\
|
||||||
|
" - name: es03\n"\
|
||||||
|
" dns:\n"\
|
||||||
|
" - es03\n"\
|
||||||
|
" - localhost\n"\
|
||||||
|
" ip:\n"\
|
||||||
|
" - 127.0.0.1\n"\
|
||||||
|
> config/certs/instances.yml;
|
||||||
|
bin/elasticsearch-certutil cert --silent --pem -out config/certs/certs.zip --in config/certs/instances.yml --ca-cert config/certs/ca/ca.crt --ca-key config/certs/ca/ca.key;
|
||||||
|
unzip config/certs/certs.zip -d config/certs;
|
||||||
|
fi;
|
||||||
|
echo "Setting file permissions"
|
||||||
|
chown -R root:root config/certs;
|
||||||
|
find . -type d -exec chmod 750 \{\} \;;
|
||||||
|
find . -type f -exec chmod 640 \{\} \;;
|
||||||
|
echo "Waiting for Elasticsearch availability";
|
||||||
|
until curl -s --cacert config/certs/ca/ca.crt https://es01:9200 | grep -q "missing authentication credentials"; do sleep 30; done;
|
||||||
|
echo "Setting kibana_system password";
|
||||||
|
until curl -s -X POST --cacert config/certs/ca/ca.crt -u "elastic:${ELASTIC_PASSWORD}" -H "Content-Type: application/json" https://es01:9200/_security/user/kibana_system/_password -d "{\"password\":\"${KIBANA_PASSWORD}\"}" | grep -q "^{}"; do sleep 10; done;
|
||||||
|
echo "All done!";
|
||||||
|
'
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD-SHELL", "[ -f config/certs/es01/es01.crt ]" ]
|
||||||
|
interval: 1s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 120
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
|
||||||
|
|
||||||
|
es01:
|
||||||
|
depends_on:
|
||||||
|
elastic-init:
|
||||||
|
condition: service_healthy
|
||||||
|
container_name: es01
|
||||||
|
restart: always
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
|
||||||
|
volumes:
|
||||||
|
- ${ES_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
|
||||||
|
- ${ES_ROOT_PATH}/es01/data:/usr/share/elasticsearch/data
|
||||||
|
- ${ES_ROOT_PATH}/es01/logs:/usr/share/elasticsearch/logs
|
||||||
|
- ${ES_ROOT_PATH}/es01/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||||||
|
- ${ES_ROOT_PATH}/es01/plugins:/usr/share/elasticsearch/plugins
|
||||||
|
ports:
|
||||||
|
- "${PANEL_APP_PORT_HTTPS}:9200"
|
||||||
|
- "${ES_COMMUNICATION_PORT}:9300"
|
||||||
|
networks:
|
||||||
|
- ${CLUSTER_NETWORK}
|
||||||
|
environment:
|
||||||
|
- node.name=es01
|
||||||
|
- cluster.name=${CLUSTER_NAME}
|
||||||
|
- cluster.initial_master_nodes=es01,es02,es03
|
||||||
|
- discovery.seed_hosts=es02,es03
|
||||||
|
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
|
||||||
|
- bootstrap.memory_lock=true
|
||||||
|
- xpack.security.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.http.ssl.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.http.ssl.key=certs/es01/es01.key
|
||||||
|
- xpack.security.http.ssl.certificate=certs/es01/es01.crt
|
||||||
|
- xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
- xpack.security.transport.ssl.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.transport.ssl.key=certs/es01/es01.key
|
||||||
|
- xpack.security.transport.ssl.certificate=certs/es01/es01.crt
|
||||||
|
- xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
- xpack.security.transport.ssl.verification_mode=certificate
|
||||||
|
- xpack.license.self_generated.type=basic
|
||||||
|
- ES_JAVA_OPTS=-Xms${ES_JAVA_OPTS_XMS} -Xmx${ES_JAVA_OPTS_XMX}
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
nofile:
|
||||||
|
soft: 65536
|
||||||
|
hard: 65536
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s --cacert config/certs/ca/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
|
||||||
|
es02:
|
||||||
|
depends_on:
|
||||||
|
- es01
|
||||||
|
container_name: es02
|
||||||
|
restart: always
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
|
||||||
|
volumes:
|
||||||
|
- ${ES_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
|
||||||
|
- ${ES_ROOT_PATH}/es02/data:/usr/share/elasticsearch/data
|
||||||
|
- ${ES_ROOT_PATH}/es02/logs:/usr/share/elasticsearch/logs
|
||||||
|
- ${ES_ROOT_PATH}/es02/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||||||
|
- ${ES_ROOT_PATH}/es02/plugins:/usr/share/elasticsearch/plugins
|
||||||
|
networks:
|
||||||
|
- ${CLUSTER_NETWORK}
|
||||||
|
environment:
|
||||||
|
- node.name=es02
|
||||||
|
- cluster.name=${CLUSTER_NAME}
|
||||||
|
- cluster.initial_master_nodes=es01,es02,es03
|
||||||
|
- discovery.seed_hosts=es01,es03
|
||||||
|
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
|
||||||
|
- bootstrap.memory_lock=true
|
||||||
|
- xpack.security.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.http.ssl.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.http.ssl.key=certs/es02/es02.key
|
||||||
|
- xpack.security.http.ssl.certificate=certs/es02/es02.crt
|
||||||
|
- xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
- xpack.security.transport.ssl.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.transport.ssl.key=certs/es02/es02.key
|
||||||
|
- xpack.security.transport.ssl.certificate=certs/es02/es02.crt
|
||||||
|
- xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
- xpack.security.transport.ssl.verification_mode=certificate
|
||||||
|
- xpack.license.self_generated.type=basic
|
||||||
|
- ES_JAVA_OPTS=-Xms${ES_JAVA_OPTS_XMS} -Xmx${ES_JAVA_OPTS_XMX}
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
nofile:
|
||||||
|
soft: 65536
|
||||||
|
hard: 65536
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s --cacert config/certs/ca/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
|
||||||
|
es03:
|
||||||
|
depends_on:
|
||||||
|
- es02
|
||||||
|
container_name: es03
|
||||||
|
restart: always
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
|
||||||
|
volumes:
|
||||||
|
- ${ES_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
|
||||||
|
- ${ES_ROOT_PATH}/es03/data:/usr/share/elasticsearch/data
|
||||||
|
- ${ES_ROOT_PATH}/es03/logs:/usr/share/elasticsearch/logs
|
||||||
|
- ${ES_ROOT_PATH}/es03/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||||||
|
- ${ES_ROOT_PATH}/es03/plugins:/usr/share/elasticsearch/plugins
|
||||||
|
networks:
|
||||||
|
- ${CLUSTER_NETWORK}
|
||||||
|
environment:
|
||||||
|
- node.name=es03
|
||||||
|
- cluster.name=${CLUSTER_NAME}
|
||||||
|
- cluster.initial_master_nodes=es01,es02,es03
|
||||||
|
- discovery.seed_hosts=es01,es02
|
||||||
|
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
|
||||||
|
- bootstrap.memory_lock=true
|
||||||
|
- xpack.security.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.http.ssl.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.http.ssl.key=certs/es03/es03.key
|
||||||
|
- xpack.security.http.ssl.certificate=certs/es03/es03.crt
|
||||||
|
- xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
- xpack.security.transport.ssl.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.transport.ssl.key=certs/es03/es03.key
|
||||||
|
- xpack.security.transport.ssl.certificate=certs/es03/es03.crt
|
||||||
|
- xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
- xpack.security.transport.ssl.verification_mode=certificate
|
||||||
|
- xpack.license.self_generated.type=basic
|
||||||
|
- ES_JAVA_OPTS=-Xms${ES_JAVA_OPTS_XMS} -Xmx${ES_JAVA_OPTS_XMX}
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
nofile:
|
||||||
|
soft: 65536
|
||||||
|
hard: 65536
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s --cacert config/certs/ca/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
|
||||||
|
kibana:
|
||||||
|
depends_on:
|
||||||
|
es01:
|
||||||
|
condition: service_healthy
|
||||||
|
es02:
|
||||||
|
condition: service_healthy
|
||||||
|
es03:
|
||||||
|
condition: service_healthy
|
||||||
|
container_name: kibana-${CONTAINER_NAME}
|
||||||
|
restart: always
|
||||||
|
image: docker.elastic.co/kibana/kibana:8.12.0
|
||||||
|
volumes:
|
||||||
|
- ${ES_ROOT_PATH}/certs:/usr/share/kibana/config/certs
|
||||||
|
- ${ES_ROOT_PATH}/kibana/data:/usr/share/kibana/data
|
||||||
|
- ${ES_ROOT_PATH}/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
|
||||||
|
ports:
|
||||||
|
- "${PANEL_APP_PORT_HTTP}:5601"
|
||||||
|
networks:
|
||||||
|
- ${CLUSTER_NETWORK}
|
||||||
|
environment:
|
||||||
|
- SERVERNAME=kibana
|
||||||
|
- ELASTICSEARCH_HOSTS=https://es01:9200
|
||||||
|
- ELASTICSEARCH_USERNAME=kibana_system
|
||||||
|
- ELASTICSEARCH_PASSWORD=${KIBANA_PASSWORD}
|
||||||
|
- ELASTICSEARCH_SSL_CERTIFICATEAUTHORITIES=config/certs/ca/ca.crt
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s -I http://localhost:5601 | grep -q 'HTTP/1.1 302 Found'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
2
apps/elastic/8.12.0-cluster/scripts/elasticsearch.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cluster.name: "docker-cluster"
|
||||||
|
network.host: 0.0.0.0
|
85
apps/elastic/8.12.0-cluster/scripts/init.sh
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# 检查 .env 文件是否存在
|
||||||
|
if [ -f .env ]; then
|
||||||
|
# 导入 .env 文件中的变量
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# 检查模板是否启用
|
||||||
|
if [ "$MS_TEMPLATE_ENABLED" = "true" ]; then
|
||||||
|
# 检查模板文件是否存在
|
||||||
|
if [ -e "docker-compose-template.yml" ]; then
|
||||||
|
# 读取模板文件的内容
|
||||||
|
template_content=$(<docker-compose-template.yml)
|
||||||
|
# 清空目标文件
|
||||||
|
> docker-compose.yml
|
||||||
|
# 将模板内容写入目标文件
|
||||||
|
echo "$template_content" > docker-compose.yml
|
||||||
|
|
||||||
|
echo "docker-compose.yml updated successfully."
|
||||||
|
else
|
||||||
|
echo "Error: docker-compose-template.yml not found."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 替换 docker-compose.yml 中的网络变量
|
||||||
|
sed -i "s/\${DOCKER_NET}/$CLUSTER_NETWORK/" docker-compose.yml
|
||||||
|
|
||||||
|
# 创建目录
|
||||||
|
mkdir -p "$ES_ROOT_PATH"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/certs"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es01/data"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es02/data"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es03/data"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es01/logs"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es02/logs"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es03/logs"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es01/config"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es02/config"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es03/config"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es01/plugins"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es02/plugins"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es03/plugins"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/kibana/data"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/kibana/config"
|
||||||
|
|
||||||
|
# 生成 elasticsearch.yml 文件
|
||||||
|
elasticsearch_config="cluster.name: \"$CLUSTER_NAME\"\nnetwork.host: 0.0.0.0"
|
||||||
|
echo -e "$elasticsearch_config" > elasticsearch.yml
|
||||||
|
cp elasticsearch.yml "$ES_ROOT_PATH/es01/config/elasticsearch.yml"
|
||||||
|
cp elasticsearch.yml "$ES_ROOT_PATH/es02/config/elasticsearch.yml"
|
||||||
|
cp elasticsearch.yml "$ES_ROOT_PATH/es03/config/elasticsearch.yml"
|
||||||
|
|
||||||
|
# 生成 kibana.yml 文件
|
||||||
|
kibana_config="server.host: \"0.0.0.0\"\nserver.shutdownTimeout: \"5s\"\nelasticsearch.hosts: [ \"https://es01:9200\", \"https://es02:9200\", \"https://es03:9200\" ]\nmonitoring.ui.container.elasticsearch.enabled: true"
|
||||||
|
echo -e "$kibana_config" > kibana.yml
|
||||||
|
cp kibana.yml "$ES_ROOT_PATH/kibana/config/kibana.yml"
|
||||||
|
|
||||||
|
# 清理中间文件
|
||||||
|
rm elasticsearch.yml kibana.yml
|
||||||
|
|
||||||
|
# 设置权限
|
||||||
|
chmod -R 777 "$ES_ROOT_PATH"
|
||||||
|
|
||||||
|
# 创建网络
|
||||||
|
docker network create "$CLUSTER_NETWORK"
|
||||||
|
# 检查创建是否成功
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "Network $CLUSTER_NETWORK created successfully."
|
||||||
|
else
|
||||||
|
echo "Failed to create network $CLUSTER_NETWORK."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Directories and permissions set successfully."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
exit 1
|
||||||
|
fi
|
4
apps/elastic/8.12.0-cluster/scripts/kibana.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
server.host: "0.0.0.0"
|
||||||
|
server.shutdownTimeout: "5s"
|
||||||
|
elasticsearch.hosts: [ "http://localhost:9200" ]
|
||||||
|
monitoring.ui.container.elasticsearch.enabled: true
|
21
apps/elastic/8.12.0-cluster/scripts/uninstall.sh
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# 检查 .env 文件是否存在
|
||||||
|
if [ -f .env ]; then
|
||||||
|
# 导入 .env 文件中的变量
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# 使用 docker network rm 命令删除网络
|
||||||
|
docker network rm $CLUSTER_NETWORK
|
||||||
|
|
||||||
|
# 检查删除是否成功
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "Network $CLUSTER_NETWORK deleted successfully."
|
||||||
|
else
|
||||||
|
echo "Failed to delete network $CLUSTER_NETWORK."
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
exit 1
|
||||||
|
fi
|
99
apps/elastic/8.12.0-node/data.yml
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "docker-cluster"
|
||||||
|
edit: true
|
||||||
|
envKey: CLUSTER_NAME
|
||||||
|
labelEn: cluster name
|
||||||
|
labelZh: 集群名称 与现有集群名称一致
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "elastic-net"
|
||||||
|
edit: true
|
||||||
|
envKey: CLUSTER_NETWORK
|
||||||
|
labelEn: cluster network
|
||||||
|
labelZh: 集群网络 与现有集群网络一致
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "es04"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_NODE_NAME
|
||||||
|
labelEn: node name
|
||||||
|
labelZh: 节点名称 与现有节点名称不一致
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: ELASTIC_PASSWORD
|
||||||
|
labelEn: Password for the 'elastic' user, Numbers and letters
|
||||||
|
labelZh: elastic 用户的密码 数字与字母组合
|
||||||
|
required: true
|
||||||
|
random: true
|
||||||
|
type: password
|
||||||
|
- default: "es01,es02,es03"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_SEED_HOSTS
|
||||||
|
labelEn: Seed hosts
|
||||||
|
labelZh: 其他节点的名称 节点发现
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "es01,es02,es03,es04"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_INITIAL_MASTER_NODES
|
||||||
|
labelEn: Initial master nodes
|
||||||
|
labelZh: 主节点选举 es04为当前节点
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "/home/elastic/cluster"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_ROOT_PATH
|
||||||
|
labelEn: data persistence root path
|
||||||
|
labelZh: 集群根路径 与现有集群根路径一致
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 1073741824
|
||||||
|
edit: true
|
||||||
|
envKey: MEM_LIMIT
|
||||||
|
labelEn: Increase or decrease based on the available host memory (in bytes)
|
||||||
|
labelZh: 根据可用主机内存增加或减少(以字节为单位)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: "9200"
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTPS
|
||||||
|
labelEn: Port to expose Elasticsearch HTTP API to the host
|
||||||
|
labelZh: 开放API的端口
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: "9300"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_COMMUNICATION_PORT
|
||||||
|
labelEn: Port to expose Elasticsearch communication to the host
|
||||||
|
labelZh: Elasticsearch通讯端口 9300
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: "512m"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_JAVA_OPTS_XMS
|
||||||
|
labelEn: JVM memory allocation pool
|
||||||
|
labelZh: JVM内存分配池 初始化内存
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "512m"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_JAVA_OPTS_XMX
|
||||||
|
labelEn: JVM memory allocation pool
|
||||||
|
labelZh: JVM内存分配池 运行内存
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "true"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_XPACK_SECURITY_ENABLED
|
||||||
|
labelEn: Enable security verification (recommended)
|
||||||
|
labelZh: 证书安全验证(推荐开启)
|
||||||
|
required: true
|
||||||
|
type: select
|
||||||
|
values:
|
||||||
|
- label: "开启"
|
||||||
|
value: "true"
|
||||||
|
- label: "关闭"
|
||||||
|
value: "false"
|
84
apps/elastic/8.12.0-node/docker-compose.yml
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
${DOCKER_NET}:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
es-node:
|
||||||
|
container_name: ${CONTAINER_NAME}-${ES_NODE_NAME}
|
||||||
|
restart: always
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
|
||||||
|
volumes:
|
||||||
|
- ${ES_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
|
||||||
|
- ${ES_ROOT_PATH}/${ES_NODE_NAME}/data:/usr/share/elasticsearch/data
|
||||||
|
- ${ES_ROOT_PATH}/${ES_NODE_NAME}/logs:/usr/share/elasticsearch/logs
|
||||||
|
- ${ES_ROOT_PATH}/${ES_NODE_NAME}/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||||||
|
- ${ES_ROOT_PATH}/${ES_NODE_NAME}/plugins:/usr/share/elasticsearch/plugins
|
||||||
|
ports:
|
||||||
|
- "${PANEL_APP_PORT_HTTPS}:9200"
|
||||||
|
- "${ES_COMMUNICATION_PORT}:9300"
|
||||||
|
networks:
|
||||||
|
- ${CLUSTER_NETWORK}
|
||||||
|
command: >
|
||||||
|
bash -c '
|
||||||
|
echo "start es-node";
|
||||||
|
if [ ! -f config/certs/${ES_NODE_NAME}.zip ]; then
|
||||||
|
echo "Creating certs";
|
||||||
|
echo -ne \
|
||||||
|
"instances:\n"\
|
||||||
|
" - name: ${ES_NODE_NAME}\n"\
|
||||||
|
" dns:\n"\
|
||||||
|
" - ${ES_NODE_NAME}\n"\
|
||||||
|
" - localhost\n"\
|
||||||
|
" ip:\n"\
|
||||||
|
" - 127.0.0.1\n"\
|
||||||
|
> config/certs/${ES_NODE_NAME}.yml;
|
||||||
|
bin/elasticsearch-certutil cert --silent --pem -out config/certs/${ES_NODE_NAME}.zip --in config/certs/${ES_NODE_NAME}.yml --ca-cert config/certs/ca/ca.crt --ca-key config/certs/ca/ca.key;
|
||||||
|
unzip config/certs/${ES_NODE_NAME}.zip -d config/certs;
|
||||||
|
fi;
|
||||||
|
echo "Setting file permissions"
|
||||||
|
chown -R root:root config/certs;
|
||||||
|
exec /usr/local/bin/docker-entrypoint.sh elasticsearch
|
||||||
|
'
|
||||||
|
environment:
|
||||||
|
- node.name=${ES_NODE_NAME}
|
||||||
|
- cluster.name=${CLUSTER_NAME}
|
||||||
|
- cluster.initial_master_nodes=${ES_INITIAL_MASTER_NODES}
|
||||||
|
- discovery.seed_hosts=${ES_SEED_HOSTS}
|
||||||
|
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
|
||||||
|
- bootstrap.memory_lock=true
|
||||||
|
- xpack.security.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.http.ssl.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.http.ssl.key=certs/${ES_NODE_NAME}/${ES_NODE_NAME}.key
|
||||||
|
- xpack.security.http.ssl.certificate=certs/${ES_NODE_NAME}/${ES_NODE_NAME}.crt
|
||||||
|
- xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
- xpack.security.transport.ssl.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.transport.ssl.key=certs/${ES_NODE_NAME}/${ES_NODE_NAME}.key
|
||||||
|
- xpack.security.transport.ssl.certificate=certs/${ES_NODE_NAME}/${ES_NODE_NAME}.crt
|
||||||
|
- xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
- xpack.security.transport.ssl.verification_mode=certificate
|
||||||
|
- xpack.license.self_generated.type=basic
|
||||||
|
- ES_JAVA_OPTS=-Xms${ES_JAVA_OPTS_XMS} -Xmx${ES_JAVA_OPTS_XMX}
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
nofile:
|
||||||
|
soft: 65536
|
||||||
|
hard: 65536
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s --cacert config/certs/ca/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
31
apps/elastic/8.12.0-node/scripts/init.sh
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# 检查 .env 文件是否存在
|
||||||
|
if [ -f .env ]; then
|
||||||
|
# 导入 .env 文件中的变量
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# 替换 docker-compose.yml 中的网络变量
|
||||||
|
sed -i "s/\${DOCKER_NET}/$CLUSTER_NETWORK/" docker-compose.yml
|
||||||
|
|
||||||
|
# 创建并设置权限
|
||||||
|
mkdir -p "$ES_ROOT_PATH"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/$ES_NODE_NAME/data"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/$ES_NODE_NAME/logs"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/$ES_NODE_NAME/config"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/$ES_NODE_NAME/plugins"
|
||||||
|
|
||||||
|
# 生成 elasticsearch.yml 文件
|
||||||
|
elasticsearch_config="cluster.name: \"$CLUSTER_NAME\"\nnetwork.host: 0.0.0.0"
|
||||||
|
echo -e "$elasticsearch_config" > elasticsearch.yml
|
||||||
|
cp elasticsearch.yml "$ES_ROOT_PATH/$ES_NODE_NAME/config/elasticsearch.yml"
|
||||||
|
|
||||||
|
chmod -R 777 "$ES_ROOT_PATH"
|
||||||
|
|
||||||
|
echo "Directories and permissions set successfully."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
exit 1
|
||||||
|
fi
|
89
apps/elastic/8.12.0-single/data.yml
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: ELASTIC_PASSWORD
|
||||||
|
labelEn: Password for the 'elastic' user, Numbers and letters
|
||||||
|
labelZh: elastic 用户的密码 数字与字母组合
|
||||||
|
required: true
|
||||||
|
random: true
|
||||||
|
type: password
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: KIBANA_PASSWORD
|
||||||
|
labelEn: Password for the 'kibana_system' user, Numbers and letters
|
||||||
|
labelZh: kibana_system 用户的密码 数字与字母组合
|
||||||
|
required: true
|
||||||
|
random: true
|
||||||
|
type: password
|
||||||
|
- default: "/home/elastic/single"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_ROOT_PATH
|
||||||
|
labelEn: data persistence root path
|
||||||
|
labelZh: 数据持久化根路径
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 1073741824
|
||||||
|
edit: true
|
||||||
|
envKey: MEM_LIMIT
|
||||||
|
labelEn: Increase or decrease based on the available host memory (in bytes)
|
||||||
|
labelZh: 根据可用主机内存增加或减少(以字节为单位)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: "9200"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_HOST
|
||||||
|
labelEn: Access host restriction 127.0.0.1:9200
|
||||||
|
labelZh: 主机限定 127.0.0.1:9200
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 9200
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTPS
|
||||||
|
labelEn: Port to expose Elasticsearch HTTP API to the host
|
||||||
|
labelZh: 开放API的端口 必须与主机限定端口一致
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: 5601
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelEn: Port to expose Kibana to the host
|
||||||
|
labelZh: Kibana面板端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: 9300
|
||||||
|
edit: true
|
||||||
|
envKey: ES_COMMUNICATION_PORT
|
||||||
|
labelEn: Port to expose Elasticsearch communication to the host
|
||||||
|
labelZh: Elasticsearch通讯端口 9300
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: "512m"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_JAVA_OPTS_XMS
|
||||||
|
labelEn: JVM memory allocation pool
|
||||||
|
labelZh: JVM内存分配池 初始化内存
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "512m"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_JAVA_OPTS_XMX
|
||||||
|
labelEn: JVM memory allocation pool
|
||||||
|
labelZh: JVM内存分配池 运行内存
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: "true"
|
||||||
|
edit: true
|
||||||
|
envKey: ES_XPACK_SECURITY_ENABLED
|
||||||
|
labelEn: Enable security verification (recommended)
|
||||||
|
labelZh: 证书安全验证(推荐开启)
|
||||||
|
required: true
|
||||||
|
type: select
|
||||||
|
values:
|
||||||
|
- label: "开启"
|
||||||
|
value: "true"
|
||||||
|
- label: "关闭"
|
||||||
|
value: "false"
|
159
apps/elastic/8.12.0-single/docker-compose.yml
Normal file
@ -0,0 +1,159 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
es-single-init:
|
||||||
|
container_name: elastic-init
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
volumes:
|
||||||
|
- ${ES_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
|
||||||
|
user: "0"
|
||||||
|
command: >
|
||||||
|
bash -c '
|
||||||
|
if [ x${ELASTIC_PASSWORD} == x ]; then
|
||||||
|
echo "Set the ELASTIC_PASSWORD environment variable in the .env file";
|
||||||
|
exit 1;
|
||||||
|
elif [ x${KIBANA_PASSWORD} == x ]; then
|
||||||
|
echo "Set the KIBANA_PASSWORD environment variable in the .env file";
|
||||||
|
exit 1;
|
||||||
|
fi;
|
||||||
|
if [ ! -f config/certs/ca.zip ]; then
|
||||||
|
echo "Creating CA";
|
||||||
|
bin/elasticsearch-certutil ca --silent --pem -out config/certs/ca.zip;
|
||||||
|
unzip config/certs/ca.zip -d config/certs;
|
||||||
|
fi;
|
||||||
|
if [ ! -f config/certs/certs.zip ]; then
|
||||||
|
echo "Creating certs";
|
||||||
|
echo -ne \
|
||||||
|
"instances:\n"\
|
||||||
|
" - name: es-single-es01\n"\
|
||||||
|
" dns:\n"\
|
||||||
|
" - es-single-es01\n"\
|
||||||
|
" - localhost\n"\
|
||||||
|
" ip:\n"\
|
||||||
|
" - 127.0.0.1\n"\
|
||||||
|
> config/certs/instances.yml;
|
||||||
|
bin/elasticsearch-certutil cert --silent --pem -out config/certs/certs.zip --in config/certs/instances.yml --ca-cert config/certs/ca/ca.crt --ca-key config/certs/ca/ca.key;
|
||||||
|
unzip config/certs/certs.zip -d config/certs;
|
||||||
|
fi;
|
||||||
|
echo "Setting file permissions"
|
||||||
|
chown -R root:root config/certs;
|
||||||
|
find . -type d -exec chmod 750 \{\} \;;
|
||||||
|
find . -type f -exec chmod 640 \{\} \;;
|
||||||
|
echo "Waiting for Elasticsearch availability";
|
||||||
|
until curl -s --cacert config/certs/ca/ca.crt https://es-single-es01:9200 | grep -q "missing authentication credentials"; do sleep 30; done;
|
||||||
|
echo "Setting kibana_system password";
|
||||||
|
until curl -s -X POST --cacert config/certs/ca/ca.crt -u "elastic:${ELASTIC_PASSWORD}" -H "Content-Type: application/json" https://es-single-es01:9200/_security/user/kibana_system/_password -d "{\"password\":\"${KIBANA_PASSWORD}\"}" | grep -q "^{}"; do sleep 10; done;
|
||||||
|
echo "All done!";
|
||||||
|
'
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD-SHELL", "[ -f config/certs/es-single-es01/es-single-es01.crt ]" ]
|
||||||
|
interval: 1s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 120
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
|
||||||
|
|
||||||
|
es-single-es01:
|
||||||
|
depends_on:
|
||||||
|
es-single-init:
|
||||||
|
condition: service_healthy
|
||||||
|
container_name: es-single-es01
|
||||||
|
restart: always
|
||||||
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.0
|
||||||
|
volumes:
|
||||||
|
- ${ES_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
|
||||||
|
- ${ES_ROOT_PATH}/es01/data:/usr/share/elasticsearch/data
|
||||||
|
- ${ES_ROOT_PATH}/es01/logs:/usr/share/elasticsearch/logs
|
||||||
|
- ${ES_ROOT_PATH}/es01/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||||||
|
- ${ES_ROOT_PATH}/es01/plugins:/usr/share/elasticsearch/plugins
|
||||||
|
ports:
|
||||||
|
- "${PANEL_APP_PORT_HTTPS}:9200"
|
||||||
|
- "${ES_COMMUNICATION_PORT}:9300"
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
environment:
|
||||||
|
- discovery.type=single-node
|
||||||
|
- node.name=es-single-es01
|
||||||
|
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
|
||||||
|
- bootstrap.memory_lock=true
|
||||||
|
- xpack.security.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.http.ssl.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.http.ssl.key=certs/es-single-es01/es-single-es01.key
|
||||||
|
- xpack.security.http.ssl.certificate=certs/es-single-es01/es-single-es01.crt
|
||||||
|
- xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
- xpack.security.transport.ssl.enabled=${ES_XPACK_SECURITY_ENABLED}
|
||||||
|
- xpack.security.transport.ssl.key=certs/es-single-es01/es-single-es01.key
|
||||||
|
- xpack.security.transport.ssl.certificate=certs/es-single-es01/es-single-es01.crt
|
||||||
|
- xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
|
||||||
|
- xpack.security.transport.ssl.verification_mode=certificate
|
||||||
|
- xpack.license.self_generated.type=basic
|
||||||
|
- ES_JAVA_OPTS=-Xms${ES_JAVA_OPTS_XMS} -Xmx${ES_JAVA_OPTS_XMX}
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
|
nofile:
|
||||||
|
soft: 65536
|
||||||
|
hard: 65536
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s --cacert config/certs/ca/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
|
||||||
|
es-single-kibana:
|
||||||
|
depends_on:
|
||||||
|
es-single-es01:
|
||||||
|
condition: service_healthy
|
||||||
|
container_name: kibana-${CONTAINER_NAME}
|
||||||
|
restart: always
|
||||||
|
image: docker.elastic.co/kibana/kibana:8.12.0
|
||||||
|
volumes:
|
||||||
|
- ${ES_ROOT_PATH}/certs:/usr/share/kibana/config/certs
|
||||||
|
- ${ES_ROOT_PATH}/kibana/data:/usr/share/kibana/data
|
||||||
|
- ${ES_ROOT_PATH}/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
|
||||||
|
ports:
|
||||||
|
- "${PANEL_APP_PORT_HTTP}:5601"
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
environment:
|
||||||
|
- SERVERNAME=kibana
|
||||||
|
- ELASTICSEARCH_HOSTS=https://es-single-es01:9200
|
||||||
|
- ELASTICSEARCH_USERNAME=kibana_system
|
||||||
|
- ELASTICSEARCH_PASSWORD=${KIBANA_PASSWORD}
|
||||||
|
- ELASTICSEARCH_SSL_CERTIFICATEAUTHORITIES=config/certs/ca/ca.crt
|
||||||
|
mem_limit: ${MEM_LIMIT}
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"curl -s -I http://localhost:5601 | grep -q 'HTTP/1.1 302 Found'",
|
||||||
|
]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 120
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
2
apps/elastic/8.12.0-single/scripts/elasticsearch.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cluster.name: "docker-cluster"
|
||||||
|
network.host: 0.0.0.0
|
63
apps/elastic/8.12.0-single/scripts/init.sh
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# 检查 .env 文件是否存在
|
||||||
|
if [ -f .env ]; then
|
||||||
|
# 导入 .env 文件中的变量
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# 检查模板是否启用
|
||||||
|
if [ "$MS_TEMPLATE_ENABLED" = "true" ]; then
|
||||||
|
# 检查模板文件是否存在
|
||||||
|
if [ -e "docker-compose-template.yml" ]; then
|
||||||
|
# 读取模板文件的内容
|
||||||
|
template_content=$(<docker-compose-template.yml)
|
||||||
|
# 清空目标文件
|
||||||
|
> docker-compose.yml
|
||||||
|
# 将模板内容写入目标文件
|
||||||
|
echo "$template_content" > docker-compose.yml
|
||||||
|
|
||||||
|
echo "docker-compose.yml updated successfully."
|
||||||
|
else
|
||||||
|
echo "Error: docker-compose-template.yml not found."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 创建目录
|
||||||
|
mkdir -p "$ES_ROOT_PATH"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/certs"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es01/data"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es01/logs"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es01/config"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/es01/plugins"
|
||||||
|
|
||||||
|
mkdir -p "$ES_ROOT_PATH/kibana/data"
|
||||||
|
mkdir -p "$ES_ROOT_PATH/kibana/config"
|
||||||
|
|
||||||
|
# 生成 elasticsearch.yml 文件
|
||||||
|
elasticsearch_config="cluster.name: \"$CLUSTER_NAME\"\nnetwork.host: 0.0.0.0"
|
||||||
|
echo -e "$elasticsearch_config" > elasticsearch.yml
|
||||||
|
cp elasticsearch.yml "$ES_ROOT_PATH/es01/config/elasticsearch.yml"
|
||||||
|
|
||||||
|
# 生成 kibana.yml 文件
|
||||||
|
kibana_config="server.host: \"0.0.0.0\"\nserver.shutdownTimeout: \"5s\"\nelasticsearch.hosts: [ \"https://es01:9200\" ]\nmonitoring.ui.container.elasticsearch.enabled: true"
|
||||||
|
echo -e "$kibana_config" > kibana.yml
|
||||||
|
cp kibana.yml "$ES_ROOT_PATH/kibana/config/kibana.yml"
|
||||||
|
|
||||||
|
# 清理中间文件
|
||||||
|
rm elasticsearch.yml kibana.yml
|
||||||
|
|
||||||
|
# 设置权限
|
||||||
|
chmod -R 777 "$ES_ROOT_PATH"
|
||||||
|
|
||||||
|
echo "Directories and permissions set successfully."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
exit 1
|
||||||
|
fi
|
4
apps/elastic/8.12.0-single/scripts/kibana.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
server.host: "0.0.0.0"
|
||||||
|
server.shutdownTimeout: "5s"
|
||||||
|
elasticsearch.hosts: [ "http://localhost:9200" ]
|
||||||
|
monitoring.ui.container.elasticsearch.enabled: true
|
21
apps/elastic/8.12.0-single/scripts/uninstall.sh
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# 检查 .env 文件是否存在
|
||||||
|
if [ -f .env ]; then
|
||||||
|
# 导入 .env 文件中的变量
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# 使用 docker network rm 命令删除网络
|
||||||
|
docker network rm $CLUSTER_NETWORK
|
||||||
|
|
||||||
|
# 检查删除是否成功
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "Network $CLUSTER_NETWORK deleted successfully."
|
||||||
|
else
|
||||||
|
echo "Failed to delete network $CLUSTER_NETWORK."
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
exit 1
|
||||||
|
fi
|
151
apps/elastic/README.md
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
# Elastic
|
||||||
|
|
||||||
|
Elastic NV是一家美籍荷兰公司,成立于2012年,位于荷兰阿姆斯特丹,以前称为Elasticsearch。这是一家搜索公司,它构建用于搜索,日志记录,安全性,可观察性和分析用例的自我管理和软件即服务产品。
|
||||||
|
|
||||||
|
Elastic NV is an American-Dutch company that was founded in 2012 in Amsterdam, the Netherlands, and was previously known
|
||||||
|
as Elasticsearch.
|
||||||
|
|
||||||
|
## 参考资料
|
||||||
|
|
||||||
|
Docker@Elastic: [https://www.docker.elastic.co/](https://www.docker.elastic.co/)
|
||||||
|
|
||||||
|
DockerFiles: [https://github.com/elastic/dockerfiles](https://github.com/elastic/dockerfiles)
|
||||||
|
|
||||||
|
GitHub Elastic: [https://github.com/elastic](https://github.com/elastic)
|
||||||
|
|
||||||
|
官方网站: [https://www.elastic.co/](https://www.elastic.co/)
|
||||||
|
|
||||||
|
官方文档: [https://www.elastic.co/guide/index.html](https://www.elastic.co/guide/index.html)
|
||||||
|
|
||||||
|
## Elastic Stack
|
||||||
|
|
||||||
|
了解可帮助您构建搜索体验、解决问题并取得成功的搜索平台
|
||||||
|
|
||||||
|
核心产品包括 Elasticsearch、Kibana、Beats 和 Logstash(也称为 ELK Stack)等等。能够安全可靠地从任何来源获取任何格式的数据,然后对数据进行搜索、分析和可视化。
|
||||||
|
|
||||||
|
### ELASTICSEARCH + KIBANA + INTEGRATIONS
|
||||||
|
|
||||||
|
集搜索驱动型产品和功能于一身
|
||||||
|
|
||||||
|
Elasticsearch 和 Kibana 都是在免费开放的基础上构建而成,适用于各种各样的用例,从日志开始,到您能想到的任何项目,无一不能胜任。Elastic
|
||||||
|
具备极有价值的功能组合,如 Machine Learning、安全和 Reporting,这些功能专为 Elastic 而生,让我们独树一帜。查看 Elastic Stack
|
||||||
|
功能的完整列表。
|
||||||
|
|
||||||
|
#### Elasticsearch
|
||||||
|
|
||||||
|
GitHub: [https://github.com/elastic/elasticsearch](https://github.com/elastic/elasticsearch)
|
||||||
|
|
||||||
|
Elasticsearch 是一个基于 JSON 的分布式搜索和分析引擎。
|
||||||
|
无论您正在查找来自特定 IP 地址的活动,还是正在分析交易请求数量为何突然飙升,或者正在方圆一公里内搜寻美食店,我们尝试解决的这些问题归根结底都是搜索问题。通过
|
||||||
|
Elasticsearch,您可以快速存储、搜索和分析大量数据。
|
||||||
|
|
||||||
|
#### Kibana
|
||||||
|
|
||||||
|
GitHub: [https://github.com/elastic/kibana](https://github.com/elastic/kibana)
|
||||||
|
|
||||||
|
Kibana 是一个可扩展的用户界面,您可以借助它对数据进行可视化分析。
|
||||||
|
在 Kibana 中通过炫酷的可视化来探索您的数据,从华夫饼图到热点图,再到时序数据分析,应有尽有。针对多样化数据源使用预配置仪表板,创建实时演示文稿以突出显示
|
||||||
|
KPI,并使用单一 UI 来管理您的部署。
|
||||||
|
|
||||||
|
#### Integrations
|
||||||
|
|
||||||
|
通过 Integrations,您可以使用 Elastic Stack 收集并关联数据。
|
||||||
|
在收集、存储、搜索和分析数据时,发掘有价值的见解。使用 Elastic 代理、Beats
|
||||||
|
或网络爬虫等功能,从应用程序、基础架构和公共内容源中采集数据,在大量开箱即用型集成功能的加持下,分分钟即可开始工作。
|
||||||
|
|
||||||
|
## 版本介绍
|
||||||
|
|
||||||
|
### 集群模式
|
||||||
|
|
||||||
|
> 8.12.0-cluster
|
||||||
|
|
||||||
|
+ Elasticsearch 8.12.0 x3
|
||||||
|
+ Kibana 8.12.0
|
||||||
|
|
||||||
|
> 8.12.0-node
|
||||||
|
|
||||||
|
新增节点,需要填写集群信息
|
||||||
|
|
||||||
|
+ Elasticsearch 8.12.0
|
||||||
|
|
||||||
|
### 单机模式
|
||||||
|
|
||||||
|
> 8.12.0-single
|
||||||
|
|
||||||
|
+ Elasticsearch 8.12.0
|
||||||
|
+ Kibana 8.12.0
|
||||||
|
|
||||||
|
> 8.12.0-elasticsearch
|
||||||
|
|
||||||
|
+ Elasticsearch 8.12.0
|
||||||
|
|
||||||
|
> 8.12.0-kibana
|
||||||
|
|
||||||
|
+ Kibana 8.12.0
|
||||||
|
|
||||||
|
## 安装事项
|
||||||
|
|
||||||
|
### 将 vm.max_map_count 设置为至少 262144
|
||||||
|
|
||||||
|
vm.max_map_count 内核设置必须至少设置为 262144 才能用于生产。
|
||||||
|
|
||||||
|
> Linux
|
||||||
|
>
|
||||||
|
> To view the current value for the vm.max_map_count setting, run:
|
||||||
|
> ```shell
|
||||||
|
> grep vm.max_map_count /etc/sysctl.conf
|
||||||
|
> ```
|
||||||
|
> 显示值大于或等于 262144。即可,如果显示的值小于 262144,请执行以下步骤:
|
||||||
|
|
||||||
|
临时设置 vm.max_map_count
|
||||||
|
|
||||||
|
```shell
|
||||||
|
sudo sysctl -w vm.max_map_count=262144
|
||||||
|
```
|
||||||
|
|
||||||
|
永久设置 vm.max_map_count
|
||||||
|
|
||||||
|
```shell
|
||||||
|
sudo vi /etc/sysctl.conf
|
||||||
|
# 文件末尾添加
|
||||||
|
vm.max_map_count=262144
|
||||||
|
# 生效
|
||||||
|
sudo sysctl -p
|
||||||
|
```
|
||||||
|
|
||||||
|
### 增加 nofile 和 nproc 的 ulimit 值 最小值 65535
|
||||||
|
|
||||||
|
> Linux
|
||||||
|
>
|
||||||
|
> root 用户 与 普通用户 请注意区别很大
|
||||||
|
>
|
||||||
|
> To view the current value for the ulimit setting, run:
|
||||||
|
> ```shell
|
||||||
|
> ulimit -n
|
||||||
|
> ```
|
||||||
|
> 显示值大于或等于 65535。即可,如果显示的值小于 65535,请执行以下步骤:
|
||||||
|
|
||||||
|
临时设置 ulimit
|
||||||
|
|
||||||
|
```shell
|
||||||
|
ulimit -n 65535
|
||||||
|
```
|
||||||
|
|
||||||
|
永久设置 ulimit
|
||||||
|
|
||||||
|
**涉及服务器重启**
|
||||||
|
|
||||||
|
```shell
|
||||||
|
sudo vi /etc/security/limits.conf
|
||||||
|
# 文件末尾添加
|
||||||
|
root soft nofile unlimited
|
||||||
|
root hard nofile unlimited
|
||||||
|
* soft nofile 65535
|
||||||
|
* hard nofile 65535
|
||||||
|
# 生效 重启(重启服务器后生效!!!)
|
||||||
|
sudo reboot
|
||||||
|
```
|
||||||
|
|
||||||
|
## 日志配置
|
||||||
|
|
||||||
|
当前采用 `JSON File logging driver` 记录日志
|
20
apps/elastic/data.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Elastic
|
||||||
|
tags:
|
||||||
|
- 中间件
|
||||||
|
title: Elastic
|
||||||
|
type: 中间件
|
||||||
|
description: 分布式、RESTful 风格的搜索和数据分析引擎
|
||||||
|
additionalProperties:
|
||||||
|
key: elastic
|
||||||
|
name: Elastic
|
||||||
|
tags:
|
||||||
|
- Middleware
|
||||||
|
shortDescZh: 分布式、RESTful 风格的搜索和数据分析引擎
|
||||||
|
shortDescEn: Distributed, RESTful search and data analytics engine
|
||||||
|
type: runtime
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
recommend: 0
|
||||||
|
website: https://www.elastic.co/
|
||||||
|
github: https://github.com/elastic
|
||||||
|
document: https://www.elastic.co/guide/index.html
|
BIN
apps/elastic/logo.png
Normal file
After Width: | Height: | Size: 13 KiB |
61
apps/emby-lovechen/4.8.0.21/data.yml
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "host"
|
||||||
|
edit: true
|
||||||
|
envKey: NETWORK_MODE
|
||||||
|
labelEn: Drive path
|
||||||
|
labelZh: 网络模式
|
||||||
|
required: true
|
||||||
|
type: select
|
||||||
|
values:
|
||||||
|
- label: 主机模式
|
||||||
|
value: "host"
|
||||||
|
- label: 桥接模式
|
||||||
|
value: "bridge"
|
||||||
|
- label: 无网络
|
||||||
|
value: "none"
|
||||||
|
- label: 1panel-network
|
||||||
|
value: "1panel-network"
|
||||||
|
- default: 8096
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelEn: WebUI Port
|
||||||
|
labelZh: 网页端口 HTTP
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: "/home/emby"
|
||||||
|
edit: true
|
||||||
|
envKey: EMBY_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: HTTP_SSL_PROXY
|
||||||
|
labelZh: HTTP(s) 网络代理
|
||||||
|
labelEn: HTTP(s) Proxy
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_1
|
||||||
|
labelEn: Custom mount directory 1
|
||||||
|
labelZh: 自定义挂载目录 1
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_2
|
||||||
|
labelEn: Custom mount directory 2
|
||||||
|
labelZh: 自定义挂载目录 2
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_3
|
||||||
|
labelEn: Custom mount directory 3
|
||||||
|
labelZh: 自定义挂载目录 3
|
||||||
|
required: false
|
||||||
|
type: text
|
34
apps/emby-lovechen/4.8.0.21/docker-compose.yml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
emby:
|
||||||
|
image: lovechen/embyserver:4.8.0.21
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
network_mode: ${NETWORK_MODE}
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:8096
|
||||||
|
devices:
|
||||||
|
- /dev/dri:/dev/dri
|
||||||
|
volumes:
|
||||||
|
- /etc/timezone:/etc/timezone
|
||||||
|
- /etc/localtime:/etc/localtime
|
||||||
|
- ${EMBY_ROOT_PATH}/config:/config
|
||||||
|
- ${EMBY_ROOT_PATH}/mnt:/mnt
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||||
|
environment:
|
||||||
|
- UID=0
|
||||||
|
- GID=0
|
||||||
|
- GIDLIST=0
|
||||||
|
- NVIDIA_VISIBLE_DEVICES=all
|
||||||
|
- HTTP_PROXY=${HTTP_PROXY:-}
|
||||||
|
- HTTPS_PROXY=${HTTP_PROXY:-}
|
||||||
|
- NO_PROXY=localhost,127.0.0.1,::1
|
14
apps/emby-lovechen/4.8.0.21/scripts/init.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/emby-lovechen/4.8.0.21/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
14
apps/emby-lovechen/4.8.0.21/scripts/upgrade.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
36
apps/emby-lovechen/README.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Emby
|
||||||
|
|
||||||
|
_Emby Media Server 特别版 | AMD64/ARM32/ARM64_
|
||||||
|
|
||||||
|
**愿你生而自由。**
|
||||||
|
|
||||||
|
Emby是一个主从式架构的媒体服务器软件,可以用来整理服务器上的视频和音频,并将音频和视频流式传输到客户端设备。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 简介
|
||||||
|
|
||||||
|
Emby(原名Media Browser)是一个主从式架构的媒体服务器软件,可以用来整理服务器上的视频和音频,并将音频和视频流式传输到客户端设备。
|
||||||
|
|
||||||
|
Emby服务器端支持Microsoft Windows、Linux、MacOS、FreeBSD,客户端支持HTML5网页,Android和IOS等移动操作系统,Roku、Amazon Fire
|
||||||
|
TV、Chromecast和Apple TV等流媒体设备,LG智能电视和三星智能电视等智能电视,以及PlayStation3、PlayStation4、Xbox 360和Xbox
|
||||||
|
One等游戏机。
|
||||||
|
|
||||||
|
Emby原本是大部分源代码是开源的,带有部分闭源工具,但是自从3.5.3版本开始变为闭源软件,Jellyfin为Emby开源分支基础上发展来的。
|
||||||
|
|
||||||
|
## 安装说明
|
||||||
|
|
||||||
|
+ 开启 `投屏服务(DLNA)` 与 `网络唤醒服务(WOL)` 功能
|
||||||
|
|
||||||
|
开启后,可以在局域网内的设备上投屏观看视频。 需要选择主机网络(host)模式。
|
||||||
|
|
||||||
|
## 特别版说明
|
||||||
|
|
||||||
|
额外修改:
|
||||||
|
|
||||||
|
+ 完全离线不需要服务器验证
|
||||||
|
+ 搜索相关
|
||||||
|
+ 支持单字搜索
|
||||||
|
+ 支持模糊搜索
|
||||||
|
+ 可直接搜索剧季标题
|
||||||
|
+ 去除自动更新
|
19
apps/emby-lovechen/data.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Emby 开心版
|
||||||
|
tags:
|
||||||
|
- 多媒体
|
||||||
|
title: 媒体服务器
|
||||||
|
description: 主从式架构的媒体服务器软件
|
||||||
|
additionalProperties:
|
||||||
|
key: emby-lovechen
|
||||||
|
name: Emby 开心版
|
||||||
|
tags:
|
||||||
|
- Media
|
||||||
|
- Local
|
||||||
|
shortDescZh: 主从式架构的媒体服务器软件
|
||||||
|
shortDescEn: A media server software with master-slave architecture
|
||||||
|
type: website
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://hub.docker.com/r/lovechen/embyserver
|
||||||
|
github: https://hub.docker.com/r/lovechen/embyserver
|
||||||
|
document: https://hub.docker.com/r/lovechen/embyserver
|
BIN
apps/emby-lovechen/logo.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
61
apps/emby/4.8.8.0/data.yml
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "host"
|
||||||
|
edit: true
|
||||||
|
envKey: NETWORK_MODE
|
||||||
|
labelZh: 网络模式
|
||||||
|
labelEn: Drive path
|
||||||
|
required: true
|
||||||
|
type: select
|
||||||
|
values:
|
||||||
|
- label: 主机模式
|
||||||
|
value: "host"
|
||||||
|
- label: 桥接模式
|
||||||
|
value: "bridge"
|
||||||
|
- label: 无网络
|
||||||
|
value: "none"
|
||||||
|
- label: 1panel-network
|
||||||
|
value: "1panel-network"
|
||||||
|
- default: 8096
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelZh: 网页端口
|
||||||
|
labelEn: WebUI Port
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: "/home/emby"
|
||||||
|
edit: true
|
||||||
|
envKey: EMBY_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: HTTP_SSL_PROXY
|
||||||
|
labelZh: HTTP(s) 网络代理
|
||||||
|
labelEn: HTTP(s) Proxy
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_1
|
||||||
|
labelEn: Custom mount directory 1
|
||||||
|
labelZh: 自定义挂载目录 1
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_2
|
||||||
|
labelEn: Custom mount directory 2
|
||||||
|
labelZh: 自定义挂载目录 2
|
||||||
|
required: false
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: CUSTOM_MOUNT_DIRECTORY_3
|
||||||
|
labelEn: Custom mount directory 3
|
||||||
|
labelZh: 自定义挂载目录 3
|
||||||
|
required: false
|
||||||
|
type: text
|
33
apps/emby/4.8.8.0/docker-compose.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
emby:
|
||||||
|
image: emby/embyserver:4.8.8.0
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
network_mode: ${NETWORK_MODE}
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:8096
|
||||||
|
devices:
|
||||||
|
- /dev/dri:/dev/dri
|
||||||
|
volumes:
|
||||||
|
- /etc/timezone:/etc/timezone
|
||||||
|
- /etc/localtime:/etc/localtime
|
||||||
|
- ${EMBY_ROOT_PATH}/config:/config
|
||||||
|
- ${EMBY_ROOT_PATH}/mnt:/mnt
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
|
||||||
|
- ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
|
||||||
|
environment:
|
||||||
|
- UID=0
|
||||||
|
- GID=0
|
||||||
|
- GIDLIST=0
|
||||||
|
- HTTP_PROXY=${HTTP_PROXY:-}
|
||||||
|
- HTTPS_PROXY=${HTTP_PROXY:-}
|
||||||
|
- NO_PROXY=localhost,127.0.0.1,::1
|
14
apps/emby/4.8.8.0/scripts/init.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/emby/4.8.8.0/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
14
apps/emby/4.8.8.0/scripts/upgrade.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
21
apps/emby/README.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Emby
|
||||||
|
|
||||||
|
Emby是一个主从式架构的媒体服务器软件,可以用来整理服务器上的视频和音频,并将音频和视频流式传输到客户端设备。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 简介
|
||||||
|
|
||||||
|
Emby(原名Media Browser)是一个主从式架构的媒体服务器软件,可以用来整理服务器上的视频和音频,并将音频和视频流式传输到客户端设备。
|
||||||
|
|
||||||
|
Emby服务器端支持Microsoft Windows、Linux、MacOS、FreeBSD,客户端支持HTML5网页,Android和IOS等移动操作系统,Roku、Amazon Fire
|
||||||
|
TV、Chromecast和Apple TV等流媒体设备,LG智能电视和三星智能电视等智能电视,以及PlayStation3、PlayStation4、Xbox 360和Xbox
|
||||||
|
One等游戏机。
|
||||||
|
|
||||||
|
Emby原本是大部分源代码是开源的,带有部分闭源工具,但是自从3.5.3版本开始变为闭源软件,Jellyfin为Emby开源分支基础上发展来的。
|
||||||
|
|
||||||
|
## 安装说明
|
||||||
|
|
||||||
|
+ 开启 `投屏服务(DLNA)` 与 `网络唤醒服务(WOL)` 功能
|
||||||
|
|
||||||
|
开启后,可以在局域网内的设备上投屏观看视频。 需要选择主机网络(host)模式。
|
18
apps/emby/data.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Emby
|
||||||
|
title: 媒体服务器
|
||||||
|
description: 主从式架构的媒体服务器软件
|
||||||
|
additionalProperties:
|
||||||
|
key: emby
|
||||||
|
name: Emby
|
||||||
|
tags:
|
||||||
|
- WebSite
|
||||||
|
- Media
|
||||||
|
- Local
|
||||||
|
shortDescZh: 主从式架构的媒体服务器软件
|
||||||
|
shortDescEn: A media server software with master-slave architecture
|
||||||
|
type: website
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://emby.media/
|
||||||
|
github: https://github.com/MediaBrowser/Emby/
|
||||||
|
document: https://emby.media/blog/
|
BIN
apps/emby/logo.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
37
apps/gitea-runner/0.2.10/data.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: "/home/gitea"
|
||||||
|
edit: true
|
||||||
|
envKey: GITEA_RUNNER_ROOT_PATH
|
||||||
|
labelZh: 数据持久化路径
|
||||||
|
labelEn: Data persistence path
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: GITEA_INSTANCE_URL
|
||||||
|
labelZh: Gitea 实例 URL
|
||||||
|
labelEn: Gitea instance URL
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||||
|
labelZh: 注册令牌
|
||||||
|
labelEn: Registration token
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: GITEA_RUNNER_NAME
|
||||||
|
labelZh: Runner 名称
|
||||||
|
labelEn: Runner name
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: GITEA_RUNNER_LABELS
|
||||||
|
labelZh: Runner 标签
|
||||||
|
labelEn: Runner labels
|
||||||
|
required: true
|
||||||
|
type: text
|
24
apps/gitea-runner/0.2.10/docker-compose.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
gitea:
|
||||||
|
image: gitea/act_runner:0.2.10
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
privileged: true
|
||||||
|
env_file:
|
||||||
|
- /etc/1panel/envs/global.env
|
||||||
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
|
volumes:
|
||||||
|
- ${GITEA_RUNNER_ROOT_PATH}/data:/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|