实现了网站密码,聊天隔离,限定访问用户,自动刷新access_token等 使用转OAuth的方式登陆,提高安全性,避免share_token泄露
自动跳转gpt页面
version: '3.8'
services:
oai-proxy:
image: neccen/oai-proxy
ports:
- "自定义端口:8080"
container_name: oai-proxy
volumes:
- /文件config目录/config.yml:/home/oai-proxy/config.yml
restart: unless-stopped
docker run -itd -p 自定义端口:8080 -v /config文件目录/config.yml:/home/oai-proxy/config.yml --restart always neccen/oai-proxy:latest
- 在Releases · ycvk/oai-proxy 下载最新的对应版本压缩文件
- 解压并进入目录,在执行程序目录下,新建
config.yml
文件,并修改配置文件 - 运行程序
access_token: xxx #access_token,可以为空,会自动根据refresh_token获取并保存
refresh_token: xxx #OpenAI的refresh_token, 必填
site_password: abc123 #网站的密码
allow_users: #允许登录的用户
- abc
- e#F8!@
- "666" #纯数字需要加引号