mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-10 18:06:56 +08:00
测试 Jellyseerr
Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
parent
d0b706a9fc
commit
fbeaf1554b
39
apps/jellyseerr/0.9.5.1/data.yml
Normal file
39
apps/jellyseerr/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
|
20
apps/jellyseerr/0.9.5.1/docker-compose.yml
Normal file
20
apps/jellyseerr/0.9.5.1/docker-compose.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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}:1188
|
||||||
|
env_file:
|
||||||
|
- /etc/1panel/envs/global.env
|
||||||
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
|
environment:
|
||||||
|
- PORT=1188
|
15
apps/jellyseerr/0.9.5.1/scripts/init.sh
Normal file
15
apps/jellyseerr/0.9.5.1/scripts/init.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
sed -i '/^ENV_FILE=/d' .env
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
10
apps/jellyseerr/0.9.5.1/scripts/uninstall.sh
Normal file
10
apps/jellyseerr/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
|
15
apps/jellyseerr/0.9.5.1/scripts/upgrade.sh
Normal file
15
apps/jellyseerr/0.9.5.1/scripts/upgrade.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f .env ]; then
|
||||||
|
source .env
|
||||||
|
|
||||||
|
# setup-1 add default values
|
||||||
|
CURRENT_DIR=$(pwd)
|
||||||
|
sed -i '/^ENV_FILE=/d' .env
|
||||||
|
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||||
|
|
||||||
|
echo "Check Finish."
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "Error: .env file not found."
|
||||||
|
fi
|
121
apps/jellyseerr/README.md
Normal file
121
apps/jellyseerr/README.md
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
# DeepLX
|
||||||
|
|
||||||
|
强大的 DeepL 翻译 API
|
||||||
|
|
||||||
|
![DeepLX](https://file.lifebus.top/imgs/deeplx_cover.png)
|
||||||
|
|
||||||
|
![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue)
|
||||||
|
|
||||||
|
## 简介
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)
|
19
apps/jellyseerr/data.yml
Normal file
19
apps/jellyseerr/data.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Jellyseerr
|
||||||
|
title: Jellyseerr
|
||||||
|
description: 满足您所有媒体需求的一站式平台
|
||||||
|
additionalProperties:
|
||||||
|
key: jellyseerr
|
||||||
|
name: Jellyseerr
|
||||||
|
tags:
|
||||||
|
- WebSite
|
||||||
|
- Media
|
||||||
|
- Middleware
|
||||||
|
- Local
|
||||||
|
shortDescZh: 满足您所有媒体需求的一站式平台
|
||||||
|
shortDescEn: A one-stop platform to meet all your media needs
|
||||||
|
type: website
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 0
|
||||||
|
website: https://docs.jellyseerr.dev/
|
||||||
|
github: https://github.com/Fallenbagel/jellyseerr/
|
||||||
|
document: https://docs.jellyseerr.dev/
|
BIN
apps/jellyseerr/logo.png
Normal file
BIN
apps/jellyseerr/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Loading…
Reference in New Issue
Block a user