mirror of
https://github.com/simon987/od-database.git
synced 2025-04-20 10:56:47 +00:00
SSL support pt.2
This commit is contained in:
parent
abe5935847
commit
a92d8fe44e
2
app.py
2
app.py
@ -184,4 +184,4 @@ def enqueue():
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
||||||
context.load_cert_chain('certificates/cert.pem', 'certificates/privkey.pem')
|
context.load_cert_chain('certificates/cert.pem', 'certificates/privkey.pem')
|
||||||
app.run("0.0.0.0", port=12345)
|
app.run("0.0.0.0", port=12345, ssl_context=context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user