How to run gradio with 0.0.0.0 and https?
I want to run gradio app withserver_name="0.0.0.0"andshare=Falseand support https.I didn’t saw any examples of how to support https with gradio.How can I do it ?I have tried to create ssl keys:openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365 -nodesand run my app via:demo.queue().launch(share=False,
                        debug=False,
                        server_name="0.0.0.0",
                        ssl_certfile="cert.pem",
                        ssl_keyfile="key.pem")but I’m getting error:requests.exceptions.SSLError: HTTPSConnectionPool(host='localhost', port=7860): Max retries exceeded with url: /startup-events (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1131)')))What are the simple steps to run gradio with 0.0.0.0 and https ?
2023-05-08T04:02:08Z
I have the same error. No solution so far. Will post if I found any.
2023-05-08T22:30:11Z
Same error posted onHow to run gradio with 0.0.0.0 and https ? · gradio-app/gradio · Discussion #4003 · GitHubtryssl_verify=Falselaunch(ssl_verify=False, ....)More context hereSupporting HTTPS when running locally · Issue #563 · gradio-app/gradio · GitHub
2023-05-09T17:22:42Z
That solves it for me. Thanks@radames!