feat: add app trae-proxy

This commit is contained in:
arch3rPro
2025-09-17 22:30:27 +08:00
parent 616a8f1259
commit 5c4fa38f74
7 changed files with 538 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# Trae-Proxy 配置文件
# 代理域名配置
domain: api.openai.com
# 后端API配置列表
apis:
- name: "deepseek-r1"
endpoint: "https://api.deepseek.com"
custom_model_id: "deepseek-reasoner"
target_model_id: "deepseek-reasoner"
stream_mode: null
active: true
- name: "kimi-k2"
endpoint: "https://api.moonshot.cn"
custom_model_id: "kimi-k2-0711-preview"
target_model_id: "kimi-k2-0711-preview"
stream_mode: null
active: true
- name: "qwen3-coder-plus"
endpoint: "https://dashscope.aliyuncs.com/compatible-mode"
custom_model_id: "qwen3-coder-plus"
target_model_id: "qwen3-coder-plus"
stream_mode: null
active: true
# 代理服务器配置
server:
port: 443
debug: true
+11
View File
@@ -0,0 +1,11 @@
additionalProperties:
formFields:
- default: "443"
envKey: PANEL_APP_PORT_HTTPS
label:
en: Proxy-Port
zh: 代理端口
required: true
type: number
edit: true
rule: paramPort
+18
View File
@@ -0,0 +1,18 @@
services:
trae-proxy:
image: vuldocker/trae-proxy:latest
container_name: ${CONTAINER_NAME}
ports:
- "${PANEL_APP_PORT_HTTPS}:443"
volumes:
- ./ca:/app/ca
- ./config.yaml:/app/config.yaml
restart: unless-stopped
networks:
- 1panel-network
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true