update doc
This commit is contained in:
@@ -65,6 +65,9 @@ wget https://github.com/mirrors2/opencatd-open/raw/main/docker/docker-compose.ym
|
|||||||
|
|
||||||
修改openai的endpoint地址?使用任意上游地址(套娃代理)
|
修改openai的endpoint地址?使用任意上游地址(套娃代理)
|
||||||
- 设置环境变量 openai_endpoint
|
- 设置环境变量 openai_endpoint
|
||||||
|
|
||||||
|
使用Nginx + Docker部署
|
||||||
|
- [使用Nginx + Docker部署](./doc/deploy.md)
|
||||||
# License
|
# License
|
||||||
|
|
||||||
[GNU General Public License v3.0](License)
|
[GNU General Public License v3.0](License)
|
||||||
28
doc/deploy.md
Normal file
28
doc/deploy.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
# nginx + docker
|
||||||
|
自行安装相关环境,省事直接用了宝塔面板
|
||||||
|
|
||||||
|
docker-compose.yml
|
||||||
|
```
|
||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
opencatd:
|
||||||
|
image: mirrors2/opencatd-open
|
||||||
|
container_name: opencatd-open
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 8088:80
|
||||||
|
volumes:
|
||||||
|
- $PWD/db:/app/db
|
||||||
|
```
|
||||||
|
nginx配置
|
||||||
|
```
|
||||||
|
location /
|
||||||
|
{
|
||||||
|
proxy_pass http://localhost:8088;
|
||||||
|
proxy_set_header Host localhost;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||||||
|
}
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user