Comments (3)
Bot detected the issue body's language is not English, translate it automatically.
Title: How to set the final interface to https?
Checklist
- I believe this idea is great and will make the framework better
- I have searched for similar requests in the issue, including closed requests
A detailed description
As the title states, some Android apps do not allow http access and can only use https
from openai-forward.
-
更建议的方式是申请一个域名,然后可以参考这里 使用nginx或caddy 和证书 将8000端口转发到https端口。
-
也可以参考
openai-forward/openai_forward/__main__.py
Lines 25 to 26 in e7da8de
直接通过环境变量传入证书文件路径,通过https访问直接访问https://ip:8000 端口(不推荐)
from openai-forward.
Bot detected the issue body's language is not English, translate it automatically.
-
The more recommended way is to apply for a domain name, and then [refer here](https://github.com/KenyonY/openai-forward/blob/main/deploy.md#%E5%BC%80%E5%90 %AFssl-%E4%BB%A5https%E8%AE%BF%E9%97%AE%E5%9F%9F%E5%90%8D) Use nginx or caddy and a certificate to forward the 8000 port to the https port.
-
But you can also refer to
openai-forward/openai_forward/__main__.py
Lines 25 to 26 in e7da8de
Pass the certificate file path directly through the environment variable and allow port 8000 to be accessed through https (not recommended)
from openai-forward.
Related Issues (20)
- 您好,这是什么问题? HOT 2
- 如果我想二次转发,我应该配置哪里? HOT 5
- Feat: Supports the latest `/v1/chat/completion` routing HOT 2
- Feat: Convert local model output to OpenAI API format
- 429 Too Many Requests HOT 1
- Update docs HOT 3
- 现在cf render vercel 部署后访问都是404 HOT 1
- feat: `/v1/completions` parse support HOT 1
- feat: Add caching of language model results HOT 2
- refactor: Switching from the httpx library to aiohttp HOT 2
- 期待融合accessToken转Token服务 HOT 3
- 启用.env之后,会出现无法启动docker的情况,而且会out of memory HOT 7
- feat: Follow up on the GPT-1106 version HOT 1
- Assistants API support HOT 5
- 需要加上:OpenAI-Beta: assistants=v1' HOT 1
- 希望增加一个可以禁用模型的选项,因为gpt4太贵,某些场合不想被用户调用。 HOT 2
- accessToken 转 Token 使用疑问 HOT 1
- Feat: Azure OpenAI support HOT 4
- Fail to deploy on Render for the newest version HOT 1
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 openai-forward.