1
0

精简提交历史记录

This commit is contained in:
okxlin
2023-11-09 19:15:01 +08:00
commit 691aa7aac9
1529 changed files with 800341 additions and 0 deletions

View 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"

View 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

View 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