Official Demo: Click Here
https://github.com/79E/ChatGpt-Web ' front+backend code
商业版GPT源码, Business GPT src
Full open source, can be secondary development
Do this in terminal (dic=/<site>
)
yarn install && yarn build
Edit server/config/index.js
Do this in terminal (dic=/<site>
)
cd server
pm2 start index.js --name chatweb --watch
Set site running dictionary to dist
folder.
Add this to site config:
location / {
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
Add Reverse proxy
, set like this
Access URl = /api
Proxy URl = http://127.0.0.1:3200/api
Catch = 1min