diff --git a/apps/jellyseerr/0.9.5.1/data.yml b/apps/jellyseerr/0.9.5.1/data.yml new file mode 100644 index 000000000..da742d365 --- /dev/null +++ b/apps/jellyseerr/0.9.5.1/data.yml @@ -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 diff --git a/apps/jellyseerr/0.9.5.1/docker-compose.yml b/apps/jellyseerr/0.9.5.1/docker-compose.yml new file mode 100644 index 000000000..04ed48ea9 --- /dev/null +++ b/apps/jellyseerr/0.9.5.1/docker-compose.yml @@ -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 diff --git a/apps/jellyseerr/0.9.5.1/scripts/init.sh b/apps/jellyseerr/0.9.5.1/scripts/init.sh new file mode 100644 index 000000000..77b849120 --- /dev/null +++ b/apps/jellyseerr/0.9.5.1/scripts/init.sh @@ -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 diff --git a/apps/jellyseerr/0.9.5.1/scripts/uninstall.sh b/apps/jellyseerr/0.9.5.1/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/jellyseerr/0.9.5.1/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/jellyseerr/0.9.5.1/scripts/upgrade.sh b/apps/jellyseerr/0.9.5.1/scripts/upgrade.sh new file mode 100644 index 000000000..77b849120 --- /dev/null +++ b/apps/jellyseerr/0.9.5.1/scripts/upgrade.sh @@ -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 diff --git a/apps/jellyseerr/README.md b/apps/jellyseerr/README.md new file mode 100644 index 000000000..01a62fe95 --- /dev/null +++ b/apps/jellyseerr/README.md @@ -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://:@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) diff --git a/apps/jellyseerr/data.yml b/apps/jellyseerr/data.yml new file mode 100644 index 000000000..4730d72b5 --- /dev/null +++ b/apps/jellyseerr/data.yml @@ -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/ diff --git a/apps/jellyseerr/logo.png b/apps/jellyseerr/logo.png new file mode 100644 index 000000000..3314de2b1 Binary files /dev/null and b/apps/jellyseerr/logo.png differ