lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

[Request] 网络访问使用代理服务器的问题

Open njuFerret opened this issue 10 months ago • 3 comments

🥰 Feature Description

在内网部署时,服务器需要通过代理访问网络,此时openai的各项服务,包括插件商店功能均因网络原因无法使用,

🧐 Proposed Solution

在系统中增加设置网络访问代理服务器功能

📝 Additional Information

No response

njuFerret avatar Apr 09 '24 03:04 njuFerret

👀 @njuFerret

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot avatar Apr 09 '24 03:04 lobehubbot

如果能使用docker部署的话,可以考虑在运行容器的时候指定代理,这样就可以访问外网了。需要注意的是,如果使用的是官方示例的docker部署命令(Bridge模式),代理服务必须要部署在宿主机上,或者使用nginx映射到宿主机,然后用docker虚拟网桥的网关ip加端口号的形式访问,如 http://172.16.0.1:7890

ShanySky avatar Apr 15 '24 05:04 ShanySky

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


If you can use docker deployment, you can consider specifying a proxy when running the container so that you can access the external network. It should be noted that if you use the official example docker deployment command (Bridge mode), the proxy service must be deployed on the host, or use nginx to map to the host, and then use the gateway ip of the docker virtual bridge plus the port number Access in the form of http://172.16.0.1:7890

lobehubbot avatar Apr 15 '24 05:04 lobehubbot

✅ @njuFerret

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot avatar Aug 03 '24 11:08 lobehubbot

:tada: This issue has been resolved in version 1.8.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

lobehubbot avatar Aug 03 '24 11:08 lobehubbot