HTTPS and user auth #1362
Replies: 3 comments 3 replies
-
I use nginx as https front-end for Gradio and it works well. I don't see a problem with user authentication with nginx, I don't think that you can do what you want with Gradio alone. |
Beta Was this translation helpful? Give feedback.
-
Yes , that will happen with self signed certificates. On your local browser
you should be able to install the certificate to bypass that or you can use
a public signing authority to create “real” certificates.
…On Tue, Jul 9, 2024 at 09:07 ne-ak ***@***.***> wrote:
@tedraymond <https://github.com/tedraymond> Could you explain how did you
accomplish it? I installed mkcert for making certificates. Then added
following to main.py but both Edge and Firefox prevents the access. I see
this "Warning: Potential Security Risk Ahead"
uvicorn.run(app,
host="0.0.0.0",
port=8001,
ssl_keyfile="./localhost+2-key.pem",
ssl_certfile="./localhost+2.pem"
)
—
Reply to this email directly, view it on GitHub
<#1362 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARNCCWNMOLSG3TUZF3GTJGDZLPVA3AVCNFSM6AAAAABAG6LC4GVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TSOJZGA3TM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This is not directly relevant, but might be. Has anyone tried configuring a reverse proxy to handle URL prefixes for privategpt? For instance, directing traffic from https://example.com/myapp/ to the backend without hardcoding the slug in the application code. I have the UI rendering, but there is a "connection errored out" message. |
Beta Was this translation helpful? Give feedback.
-
Anyone try implementing https and user authentication via local db or ldap? Curious if gradio cann easily support or would it be better to run behind nginx or other web platform.
Beta Was this translation helpful? Give feedback.
All reactions