提交合并
Signed-off-by: 萌森 <qyg2297248353@163.com>
74
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
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
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
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
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
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
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
alist-aria2/logo.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
74
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
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
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
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
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
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
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
alist-ffmpeg/logo.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
74
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
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
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
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
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
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
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
alist/logo.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
38
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
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
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
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
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
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
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
bark/logo.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
19
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
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
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
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
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
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
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
cookie-cloud/logo.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
39
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
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
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
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
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
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
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
deeplx/logo.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
17
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
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
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
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
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
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
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
dockge/logo.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
94
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
elastic/logo.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
61
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
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
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
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
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
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
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
emby-lovechen/logo.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
61
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
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
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
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
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
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
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
emby/logo.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
37
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
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
|
||||
10
gitea-runner/0.2.10/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
gitea-runner/0.2.10/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
gitea-runner/0.2.10/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
|
||||
71
gitea-runner/README.md
Normal file
@ -0,0 +1,71 @@
|
||||
# Gitea
|
||||
|
||||
Gitea 是一个轻量级的 DevOps 平台软件。
|
||||
|
||||

|
||||
|
||||
Gitea 是一个轻量级的 DevOps 平台软件。从开发计划到产品成型的整个软件生命周期,他都能够高效而轻松的帮助团队和开发者。包括
|
||||
Git 托管、代码审查、团队协作、软件包注册和 CI/CD。它与 GitHub、Bitbucket 和 GitLab 等比较类似。 Gitea 最初是从 Gogs
|
||||
分支而来,几乎所有代码都已更改。
|
||||
|
||||
## 特性
|
||||
|
||||
+ 代码托管
|
||||
|
||||
Gitea⽀持创建和管理仓库、浏览提交历史和代码⽂件、审查和合并代码提交、管理协作者、管理分⽀等。它还⽀持许多常见的Git特性,⽐如标签、Cherry-pick、hook、集成协作⼯具等。
|
||||
|
||||
+ 轻量级和快速
|
||||
|
||||
Gitea 的设计目标之一就是轻量级和快速响应。它不像一些大型的代码托管平台那样臃肿,因此在性能方面表现出色,适用于资源有限的服务器环境。由于其轻量级设计,Gitea
|
||||
在资源消耗方面相对较低,可以在资源有限的环境下运行良好。
|
||||
|
||||
+ 易于部署和维护
|
||||
|
||||
轻松地部署在各种服务器上,不需要复杂的配置和依赖。这使得个人开发者或小团队可以方便地设置和管理自己的 Git 服务。
|
||||
|
||||
+ 安全性
|
||||
|
||||
Gitea 注重安全性,提供了用户权限管理、访问控制列表等功能,可以确保代码和数据的安全性。
|
||||
|
||||
+ 代码评审
|
||||
|
||||
代码评审同时支持 Pull Request workflow 和 AGit workflow。评审⼈可以在线浏览代码,并提交评审意见或问题。 提交者可以接收到评审意见,并在线回
|
||||
复或修改代码。代码评审可以帮助用户和企业提⾼代码质量。
|
||||
|
||||
+ CI/CD
|
||||
|
||||
Gitea Actions⽀持 CI/CD 功能,该功能兼容 GitHub Actions,⽤⼾可以采用熟悉的YAML格式编写workflows,也可以重⽤⼤量的已有的 Actions
|
||||
插件。Actions 插件支持从任意的 Git 网站中下载。
|
||||
|
||||
项目管理:Gitea 通过看板和⼯单来跟踪⼀个项⽬的需求,功能和bug。⼯单⽀持分支,标签、⾥程碑、 指派、时间跟踪、到期时间、依赖关系等功能。
|
||||
|
||||
+ 制品库
|
||||
|
||||
Gitea支持超过 20 种不同种类的公有或私有软件包管理,包括:Cargo, Chef, Composer, Conan, Conda, Container, Helm, Maven, npm,
|
||||
NuGet, Pub, PyPI, RubyGems, Vagrant等
|
||||
|
||||
+ 开源社区支持
|
||||
|
||||
Gitea 是一个基于 MIT 许可证的开源项目,Gitea 拥有一个活跃的开源社区,能够持续地进行开发和改进,同时也积极接受社区贡献,保持了平台的更新和创新。
|
||||
|
||||
+ 多语言支持
|
||||
|
||||
Gitea 提供多种语言界面,适应全球范围内的用户,促进了国际化和本地化。
|
||||
|
||||
## 反向代理
|
||||
|
||||
> Nginx
|
||||
|
||||
```nginx
|
||||
location / {
|
||||
proxy_pass http://localhost:3000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
```
|
||||
|
||||
## 安装说明
|
||||
|
||||
这是Gitea Actions的Runner,用于在Gitea Actions中执行任务。
|
||||
19
gitea-runner/data.yml
Normal file
@ -0,0 +1,19 @@
|
||||
name: Gitea Runner
|
||||
title: 新一代的代码托管平台
|
||||
description: 新一代的代码托管平台
|
||||
additionalProperties:
|
||||
key: gitea-runner
|
||||
name: Gitea Runner
|
||||
tags:
|
||||
- WebSite
|
||||
- DevOps
|
||||
- Storage
|
||||
- Local
|
||||
shortDescZh: 新一代的代码托管平台
|
||||
shortDescEn: The next generation of code hosting platform
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://gitea.io/
|
||||
github: https://github.com/go-gitea/gitea/
|
||||
document: https://docs.gitea.io/
|
||||
BIN
gitea-runner/logo.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
2706
gitea/1.22.1/config/app.example.ini
Normal file
212
gitea/1.22.1/data.yml
Normal file
@ -0,0 +1,212 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
default: postgresql
|
||||
edit: true
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelZh: 数据库 服务 (前置检查)
|
||||
labelEn: Database Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: PostgreSQL
|
||||
value: postgresql
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: MariaDB
|
||||
value: mariadb
|
||||
- label: Percona
|
||||
value: percona
|
||||
- default: "/home/gitea"
|
||||
edit: true
|
||||
envKey: GITEA_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 3000
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 222
|
||||
envKey: PANEL_APP_PORT_SSH
|
||||
labelZh: SSH 端口
|
||||
labelEn: SSH Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: postgresql
|
||||
edit: true
|
||||
envKey: DB_TYPE
|
||||
labelZh: 数据库 类型
|
||||
labelEn: Database Type
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: PostgreSQL
|
||||
value: postgresql
|
||||
- label: MySQL (MariaDB, Percona)
|
||||
value: mysql
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: DB_HOSTNAME
|
||||
labelZh: 数据库 主机地址
|
||||
labelEn: Database Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 5432
|
||||
edit: true
|
||||
envKey: DB_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "gitea"
|
||||
edit: true
|
||||
envKey: DB_USER
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database User
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: DB_PASSWD
|
||||
labelEn: Database Password
|
||||
labelZh: 数据库 密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: "gitea"
|
||||
edit: true
|
||||
envKey: DB_NAME
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
required: true
|
||||
type: text
|
||||
- default: "Gitea: Git with a cup of tea"
|
||||
edit: true
|
||||
envKey: APP_NAME
|
||||
labelZh: 应用名称
|
||||
labelEn: Application Name
|
||||
required: true
|
||||
type: text
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: DOMAIN
|
||||
labelZh: HTTP 克隆域名
|
||||
labelEn: HTTP Clone Domain
|
||||
required: true
|
||||
type: text
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: SSH_DOMAIN
|
||||
labelZh: SSH 克隆域名
|
||||
labelEn: SSH Clone Domain
|
||||
required: true
|
||||
type: text
|
||||
- default: "222"
|
||||
edit: true
|
||||
envKey: SSH_PORT
|
||||
labelZh: SSH 克隆端口
|
||||
labelEn: SSH Clone Port
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: ROOT_URL
|
||||
labelZh: 公共 URL (覆盖级)
|
||||
labelEn: Public URL (Override)
|
||||
required: false
|
||||
type: text
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: LFS_START_SERVER
|
||||
labelZh: 启用 Git LFS 支持
|
||||
labelEn: Enable Git LFS Support
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 开启
|
||||
value: "true"
|
||||
- label: 关闭
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: DISABLE_REGISTRATION
|
||||
labelZh: 禁用注册
|
||||
labelEn: Disable Registration
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 开启
|
||||
value: "true"
|
||||
- label: 关闭
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: REQUIRE_SIGNIN_VIEW
|
||||
labelZh: 强制登录
|
||||
labelEn: Require Signin
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 开启
|
||||
value: "true"
|
||||
- label: 关闭
|
||||
value: "false"
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: INSTALL_LOCK
|
||||
labelZh: 禁止访问安装页面
|
||||
labelEn: Disable Access to Install Page
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 忽略
|
||||
value: ""
|
||||
- label: 开启
|
||||
value: "true"
|
||||
- label: 关闭
|
||||
value: "false"
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: SECRET_KEY
|
||||
labelZh: 全局密钥 (覆盖级)
|
||||
labelEn: Global Secret Key (Override)
|
||||
required: false
|
||||
type: text
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: PROXY_ENABLED
|
||||
labelZh: 启用代理
|
||||
labelEn: Enable Proxy
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 开启
|
||||
value: "true"
|
||||
- label: 关闭
|
||||
value: "false"
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: PROXY_URL
|
||||
labelZh: 代理服务器地址
|
||||
labelEn: Proxy Server URL
|
||||
required: false
|
||||
type: text
|
||||
- default: "**"
|
||||
edit: true
|
||||
envKey: PROXY_HOSTS
|
||||
labelZh: 代理网址
|
||||
labelEn: Proxy Hosts
|
||||
required: false
|
||||
type: text
|
||||