update doc

This commit is contained in:
Sakurasan
2023-06-01 18:21:54 +08:00
parent ebe2ae4b19
commit a2e929890b
2 changed files with 31 additions and 0 deletions

View File

@@ -65,6 +65,9 @@ wget https://github.com/mirrors2/opencatd-open/raw/main/docker/docker-compose.ym
修改openai的endpoint地址使用任意上游地址(套娃代理)
- 设置环境变量 openai_endpoint
使用Nginx + Docker部署
- [使用Nginx + Docker部署](./doc/deploy.md)
# License
[GNU General Public License v3.0](License)

28
doc/deploy.md Normal file
View 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;
}
```