Git Product home page Git Product logo

Comments (3)

Issues-translate-bot avatar Issues-translate-bot commented on August 17, 2024

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.

KenyonY avatar KenyonY commented on August 17, 2024
  1. 更建议的方式是申请一个域名,然后可以参考这里 使用nginx或caddy 和证书 将8000端口转发到https端口。

  2. 也可以参考

    ssl_keyfile = os.environ.get("ssl_keyfile", None) or None
    ssl_certfile = os.environ.get("ssl_certfile", None) or None

    直接通过环境变量传入证书文件路径,通过https访问直接访问https://ip:8000 端口(不推荐)

from openai-forward.

Issues-translate-bot avatar Issues-translate-bot commented on August 17, 2024

Bot detected the issue body's language is not English, translate it automatically.


  1. 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.

  2. But you can also refer to

    ssl_keyfile = os.environ.get("ssl_keyfile", None) or None
    ssl_certfile = os.environ.get("ssl_certfile", None) or None

    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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.