Comments (6)
建议通过cloudflare的tunnel进行反代,可以自动配置好tls证书进行加密
from freegpt35.
我的情况比较特殊,我在国内有可用网络的 NAS 上部署服务,用 Tailscale 隧穿到国内云服务器上,用 Nginx Proxy Manager 代理隧穿过来的服务。我之前尝试在 NAS 上装 Cloudflare Tunnel 容器,但是因为 NAS 使用 OpenWrt 提供网络,CF Tunnel 一直无法正常配置。
from freegpt35.
我也存在同样的疑问。我使用的是docker部署NPM,但是疑惑的是因为docker同时部署NPM和Freegpt35两个容器,其docker0网桥并不一致,是否可以使用docker inspect <container_id>来分别查看两个容器的ip,然后再NPM的反代ip里面设置freegpt35的容器ip;
另一种思路是在部署容器的时候使用docker network create my_network命令来创建一个docker网络,然后启动容器时用--network参数来指定,使NPM和freegpt35处于同一个网络中,再进入NPM界面设置反代。
不知道哪种方式比较好,有没有大佬或者实操过的朋友给出解答
from freegpt35.
我也存在同样的疑问。我使用的是docker部署NPM,但是疑惑的是因为docker同时部署NPM和Freegpt35两个容器,其docker0网桥并不一致,是否可以使用docker inspect <container_id>来分别查看两个容器的ip,然后再NPM的反代ip里面设置freegpt35的容器ip; 另一种思路是在部署容器的时候使用docker network create my_network命令来创建一个docker网络,然后启动容器时用--network参数来指定,使NPM和freegpt35处于同一个网络中,再进入NPM界面设置反代。 不知道哪种方式比较好,有没有大佬或者实操过的朋友给出解答
不用那么麻烦,在部署docker的时候会写两个端口号(类似于3030:3030这种),这就意味着这个项目的访问地址和端口就是你的服务器的ip:3030.直接用服务器的IP地址和这个端口号就行了。
from freegpt35.
我也存在同样的疑问。我使用的是docker部署NPM,但是疑惑的是因为docker同时部署NPM和Freegpt35两个容器,其docker0网桥并不一致,是否可以使用docker inspect <container_id>来分别查看两个容器的ip,然后再NPM的反代ip里面设置freegpt35的容器ip; 另一种思路是在部署容器的时候使用docker network create my_network命令来创建一个docker网络,然后启动容器时用--network参数来指定,使NPM和freegpt35处于同一个网络中,再进入NPM界面设置反代。 不知道哪种方式比较好,有没有大佬或者实操过的朋友给出解答
你直接在 NPM 里使用 172.17.0.1 这个 Docker host 网络的 IP 代理即可。
我反向代理的问题已经解决了,直接修改了 NPM 的 .conf 配置文件。
from freegpt35.
Related Issues (20)
- 关于刷新时间间隔的设置
- 接口报错: 'choices' HOT 2
- Does this support system prompt?
- How to use system prompt HOT 1
- invalid_request_error HOT 1
- python client can not be used. HOT 1
- Request support for cloudflare workers deployment HOT 6
- 你好,返回结果为什么是分多个数组元素 HOT 3
- please make sure your request is SFW, or use a jailbreak to pass the filter HOT 2
- How to call functions
- could you set up apiKey to call the API
- 回复最大token好像只有400,说一点点就被自动截断了
- 连续对话会报错404
- License Compliance Issue HOT 3
- body-parser 是一个幽灵依赖 HOT 1
- 回答不完整,是我没设置好吗? HOT 2
- win11下wsl2里怎么安装,调用呢? 有谁能把命令更新一下吗? HOT 7
- axios->fetch
- The requested endpoint was not found. please make sure to use \"http://localhost:3040/v1\" as the base URL. HOT 2
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 freegpt35.