Comments (5)
https://wongsaang.github.io/chatgpt-ui/guide/configuration.html#client-configuration
This issue is likely caused by missing environment variables. Please create a .env file in the project root directory, and then add the environment variables as mentioned in the documentation. Especially SERVER_DOMAIN
, which specifies the address of your backend for the proxy to connect to.
from chatgpt-ui.
https://wongsaang.github.io/chatgpt-ui/guide/configuration.html#client-configuration
This issue is likely caused by missing environment variables. Please create a .env file in the project root directory, and then add the environment variables as mentioned in the documentation. Especially
SERVER_DOMAIN
, which specifies the address of your backend for the proxy to connect to.
Thank you, the .env file had been placed and the SERVER_DOMAIN
were also set. If I run the yarn dev
, the project can run successfully, but when i run the above node .output/server/index.mjs
after bash yarn build. At the same time, when i deploy the project on the Ubuntu22.04, the .env
file is not work as you mentioned. I alter the content as follows annotation
to solve this problem
import { createProxyMiddleware } from 'http-proxy-middleware'
export default defineEventHandler(async (event) => {
await new Promise((resolve, reject) => {
createProxyMiddleware({
target: process.env.SERVER_DOMAIN,
// target: "http://xxx.xxxx.xxx.1xx:8000/",
pathFilter: '/api',
})(event.node.req, event.node.res, (err) => {
if (err)
reject(err)
else
resolve(true)
})
})
})
from chatgpt-ui.
You can also define system-level environment variables so that Node can read them. Alternatively, you can prefix your command with an environment variable, for example:
MY_ENV_VAR=example_value node your_script.js
from chatgpt-ui.
You can also define system-level environment variables so that Node can read them. Alternatively, you can prefix your command with an environment variable, for example:
MY_ENV_VAR=example_value node your_script.js
Thank you, the issue was solved by define the systemctl-level environment as SERVER_DOMAIN = ipaddress:port
, but the nuxt project seems cannot access the backend server , and my SERVER_DOMAIN is set 127.0.0.1:8000
.
I tried to run the django project with the command python manage.py runserver 0.0.0.0:8000
also fails, and the settings is python ALLOWED_HOSTS=['*']
In the end, does the coffee can be pay with Alipay. Thank you very much.
from chatgpt-ui.
You can also define system-level environment variables so that Node can read them. Alternatively, you can prefix your command with an environment variable, for example:
MY_ENV_VAR=example_value node your_script.js
Thank you, the issue was solved by define the systemctl-level environment as
SERVER_DOMAIN = ipaddress:port
, but the nuxt project seems cannot access the backend server , and my SERVER_DOMAIN is set127.0.0.1:8000
. I tried to run the django project with the commandpython manage.py runserver 0.0.0.0:8000
also fails, and the settings ispython ALLOWED_HOSTS=['*']
In the end, does the coffee can be pay with Alipay. Thank you very much.
BMC doesn't seem to support Alipay, but you can input UnionPay card information in the bank card section. If you'd like to support me, you can give it a try. Thank you!
from chatgpt-ui.
Related Issues (20)
- 页面滚动建议
- add lang HOT 3
- Use console.log, there is no printing
- embedding_document 接口报 500 错误 HOT 2
- docker中的chatgpt_ui_wsgi_server image可以修改吗,还是直接拉docker.io的镜像
- 运行 yarn dev后卡在Vite client warmed up in 22767ms
- 为什么使用ssr,实现一个AI对话UI
- 后端无法添加account.apps.AccountConfig去自定义user
- support image/files upload HOT 1
- 添加api key后,访问客户端提问响应超时
- 需要支持google的gemini,我测试了不输gpt3.5,还免费
- Unable to set up the backend. With Traefik on Docker Swarm HOT 2
- Exceeded current quota
- 添加正确的api key,服务器使用达拉斯的服务器,请求失败
- 页面显示问题 HOT 2
- ERROR input.replace is not a function
- 为什么我用户名和密码输入正确,同时服务端返回 "POST /admin/login/?next=/admin/ HTTP/1.1" 200 4303,但依旧登录不进去
- 自定义本地模型部署
- 比较喜欢这个界面。但尝试在 VPS 上使用 docker 安装配置后,碰到了一系列奇怪的问题,最后只好放弃。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-ui.