mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
- Add `web_password` config to enable login authentication - Use stateless HMAC-signed token (survives restart, invalidates on password change) - Add `web_session_expire_days` config (default 30 days) - Protect all API endpoints with auth check (401 on failure) - Add login page UI with auto-redirect on session expiry - Add password management in config page (masked display, inline edit) - Add tooltip hints for Agent config fields - Update default agent_max_context_turns to 20, agent_max_steps to 20 - Update docs and docker-compose.yml
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
version: '2.0'
|
|
services:
|
|
chatgpt-on-wechat:
|
|
image: zhayujie/chatgpt-on-wechat
|
|
container_name: chatgpt-on-wechat
|
|
security_opt:
|
|
- seccomp:unconfined
|
|
ports:
|
|
- "9899:9899"
|
|
environment:
|
|
CHANNEL_TYPE: 'weixin'
|
|
MODEL: 'MiniMax-M2.7'
|
|
MINIMAX_API_KEY: ''
|
|
ZHIPU_AI_API_KEY: ''
|
|
ARK_API_KEY: ''
|
|
MOONSHOT_API_KEY: ''
|
|
DASHSCOPE_API_KEY: ''
|
|
CLAUDE_API_KEY: ''
|
|
CLAUDE_API_BASE: 'https://api.anthropic.com/v1'
|
|
OPEN_AI_API_KEY: ''
|
|
OPEN_AI_API_BASE: 'https://api.openai.com/v1'
|
|
GEMINI_API_KEY: ''
|
|
GEMINI_API_BASE: 'https://generativelanguage.googleapis.com'
|
|
VOICE_TO_TEXT: 'openai'
|
|
TEXT_TO_VOICE: 'openai'
|
|
VOICE_REPLY_VOICE: 'False'
|
|
SPEECH_RECOGNITION: 'True'
|
|
GROUP_SPEECH_RECOGNITION: 'False'
|
|
USE_LINKAI: 'False'
|
|
LINKAI_API_KEY: ''
|
|
LINKAI_APP_CODE: ''
|
|
FEISHU_APP_ID: ''
|
|
FEISHU_APP_SECRET: ''
|
|
DINGTALK_CLIENT_ID: ''
|
|
DINGTALK_CLIENT_SECRET: ''
|
|
WECOM_BOT_ID: ''
|
|
WECOM_BOT_SECRET: ''
|
|
WEB_PASSWORD: ''
|
|
AGENT: 'True'
|
|
AGENT_MAX_CONTEXT_TOKENS: 50000
|
|
AGENT_MAX_CONTEXT_TURNS: 20
|
|
AGENT_MAX_STEPS: 20
|
|
volumes:
|
|
- ./cow:/home/agent/cow
|