Git Product home page Git Product logo

Comments (11)

ariesy avatar ariesy commented on July 24, 2024 1

增加用户名密码访问控制更方便一点,如果发现流量异常,可以直接修改用户名密码的配置,不用重新去generate API key。使用用户名密码的方式也更方便分享给朋友使用。

from chatgpt-vercel.

Lucoding00 avatar Lucoding00 commented on July 24, 2024

是否可以加一个简单的访问控制,校验一个密码,通过之后才能访问

他这个网站只是一个演示模板,真正的key还是你自己生成的,权限在自己手上

from chatgpt-vercel.

hezhongtang avatar hezhongtang commented on July 24, 2024

同意,如果能在进入的时候输入简易口令其实也是可以的,比如弹出一个窗口,输入密令后才可继续问问题。毕竟在多平台环境下不可能自己到处复制api key来问问题。

from chatgpt-vercel.

Lucoding00 avatar Lucoding00 commented on July 24, 2024

那你的key是不是需要保存下来,保存在哪里呢,是否存在key泄露的问题呢

from chatgpt-vercel.

ariesy avatar ariesy commented on July 24, 2024

部署的时候放环境变量就好了

from chatgpt-vercel.

Lucoding00 avatar Lucoding00 commented on July 24, 2024

部署的时候放环境变量就好了

可以的,你可以切一个分支出来完成这个需求,但是我觉得复制key和复制密钥没有什么两样

from chatgpt-vercel.

whenk7 avatar whenk7 commented on July 24, 2024

环境变量放一个密码,进入网页弹框输入密码

from chatgpt-vercel.

Hime-Hina avatar Hime-Hina commented on July 24, 2024

我记得chatgpt-demo就有这功能吧。

from chatgpt-vercel.

wrxx2019 avatar wrxx2019 commented on July 24, 2024

我记得chatgpt-demo就有这功能吧。
SITE_PASSWORD这个环境变量似乎无效
chatgpt-demo下有password.astro控制,所以SITE_PASSWORD可用

from chatgpt-vercel.

kjcx100 avatar kjcx100 commented on July 24, 2024

我记得chatgpt-demo就有这功能吧。
SITE_PASSWORD这个环境变量似乎无效
chatgpt-demo下有password.astro控制,所以SITE_PASSWORD可用

佬们知道咋更新过来不,

from chatgpt-vercel.

wrxx2019 avatar wrxx2019 commented on July 24, 2024

我记得chatgpt-demo就有这功能吧。
SITE_PASSWORD这个环境变量似乎无效
chatgpt-demo下有password.astro控制,所以SITE_PASSWORD可用

佬们知道咋更新过来不,

你看一下更新的readme, 大佬已经加了PASSWORD变量了,能设置网站密码了。

from chatgpt-vercel.

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.