精简提交历史记录
This commit is contained in:
9
apps/happy-chatgpt/latest/.env.sample
Normal file
9
apps/happy-chatgpt/latest/.env.sample
Normal file
@@ -0,0 +1,9 @@
|
||||
CONTAINER_NAME="happy-chatgpt"
|
||||
API_BASE_URL=""
|
||||
API_KEY="sk-xxx"
|
||||
API_MODEL=""
|
||||
HEAD_SCRIPTS_VAULE=""
|
||||
HTTPS_PROXY=""
|
||||
PANEL_APP_PORT_HTTP="40117"
|
||||
PUBLIC_SECRET_KEY_VAULE=""
|
||||
SECRET_KEY="happychatgpt-pwd"
|
||||
61
apps/happy-chatgpt/latest/data.yml
Normal file
61
apps/happy-chatgpt/latest/data.yml
Normal file
@@ -0,0 +1,61 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40117
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "sk-xxx"
|
||||
edit: true
|
||||
envKey: API_KEY
|
||||
labelEn: OPENAI API KEY
|
||||
labelZh: OPENAI API KEY
|
||||
required: true
|
||||
type: text
|
||||
- default: "happychatgpt"
|
||||
edit: true
|
||||
envKey: SECRET_KEY
|
||||
labelEn: Access rights key, optional (recommended)
|
||||
labelZh: 访问权限密钥,可选(强烈建议填写)
|
||||
random: true
|
||||
required: false
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: HTTPS_PROXY
|
||||
labelEn: HTTPS proxy (http://127.0.0.1:7890)
|
||||
labelZh: HTTPS代理 (http://127.0.0.1:7890)
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: API_BASE_URL
|
||||
labelEn: API interface address (https://api.openai.com)
|
||||
labelZh: API接口地址 (https://api.openai.com)
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: API_MODEL
|
||||
labelEn: API model, optional (https://platform.openai.com/docs/models)
|
||||
labelZh: API模型,可选 (https://platform.openai.com/docs/models)
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: HEAD_SCRIPTS_VAULE
|
||||
labelEn: Inject </head> analytics or other scripts before the page
|
||||
labelZh: 在页面的 </head> 之前注入分析或其他脚本
|
||||
required: false
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: PUBLIC_SECRET_KEY_VAULE
|
||||
labelEn: The secret string for the project. The signature used to generate the API call
|
||||
labelZh: 项目的秘密字符串。用于生成 API 调用的签名
|
||||
required: false
|
||||
type: text
|
||||
24
apps/happy-chatgpt/latest/docker-compose.yml
Normal file
24
apps/happy-chatgpt/latest/docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
version: '3'
|
||||
services:
|
||||
happy-chatgpt:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:3000"
|
||||
environment:
|
||||
- "OPENAI_API_KEY=${API_KEY}"
|
||||
- "HTTPS_PROXY=${HTTPS_PROXY}"
|
||||
- "OPENAI_API_BASE_URL=${API_BASE_URL}"
|
||||
- "HEAD_SCRIPTS=${HEAD_SCRIPTS_VAULE}"
|
||||
- "PUBLIC_SECRET_KEY=${PUBLIC_SECRET_KEY_VAULE}"
|
||||
- "SITE_PASSWORD=${SECRET_KEY}"
|
||||
- "OPENAI_API_MODEL=${API_MODEL}"
|
||||
image: ddiu8081/chatgpt-demo:latest
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user