精简提交历史记录
This commit is contained in:
6
apps/go-chatgpt-api/latest/.env.sample
Normal file
6
apps/go-chatgpt-api/latest/.env.sample
Normal file
@@ -0,0 +1,6 @@
|
||||
CONTAINER_NAME="go-chatgpt-api"
|
||||
PANEL_APP_PORT_HTTP="40041"
|
||||
API_PANDORA="1"
|
||||
ARKOSE_TOKEN_URL=""
|
||||
OPENAI_EMAIL=""
|
||||
OPENAI_PASSWORD=""
|
||||
38
apps/go-chatgpt-api/latest/data.yml
Normal file
38
apps/go-chatgpt-api/latest/data.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40041
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "1"
|
||||
edit: true
|
||||
envKey: API_PANDORA
|
||||
labelEn: Pandora API mode
|
||||
labelZh: 潘多拉API模式
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: ARKOSE_TOKEN_URL
|
||||
labelEn: ARKOSE Token URL
|
||||
labelZh: ARKOSE_TOKEN 链接
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: OPENAI_EMAIL
|
||||
labelEn: OpenAI account email
|
||||
labelZh: OpenAI账户邮箱
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: OPENAI_PASSWORD
|
||||
labelEn: OpenAI account password
|
||||
labelZh: OpenAI账户密码
|
||||
required: false
|
||||
type: text
|
||||
44
apps/go-chatgpt-api/latest/docker-compose.yml
Normal file
44
apps/go-chatgpt-api/latest/docker-compose.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
version: "3"
|
||||
services:
|
||||
go-chatgpt-api:
|
||||
container_name: ${CONTAINER_NAME}-api
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:8080"
|
||||
environment:
|
||||
- GO_CHATGPT_API_PROXY=socks5://chatgpt-proxy-server-warp:65535
|
||||
- GO_CHATGPT_API_PANDORA=${API_PANDORA}
|
||||
- GO_CHATGPT_API_ARKOSE_TOKEN_URL=${ARKOSE_TOKEN_URL}
|
||||
- GO_CHATGPT_API_OPENAI_EMAIL=${OPENAI_EMAIL}
|
||||
- GO_CHATGPT_API_OPENAI_PASSWORD=${OPENAI_PASSWORD}
|
||||
image: linweiyuan/go-chatgpt-api:latest
|
||||
depends_on:
|
||||
- chatgpt-proxy-server-warp
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "20m"
|
||||
max-file: "1"
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
chatgpt-proxy-server-warp:
|
||||
container_name: ${CONTAINER_NAME}-warp
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
image: linweiyuan/chatgpt-proxy-server-warp:latest
|
||||
environment:
|
||||
- LOG_LEVEL=INFO
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "20m"
|
||||
max-file: "1"
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user