Update main.py
Unused reference to pyOpenSSL removed
This commit is contained in:
parent
f5eee854f8
commit
b00745543b
@ -10,7 +10,6 @@ from app.blueprints.misp import misp_bp
|
|||||||
import datetime
|
import datetime
|
||||||
import secrets
|
import secrets
|
||||||
import jwt
|
import jwt
|
||||||
from OpenSSL import SSL
|
|
||||||
from app.utils import read_config
|
from app.utils import read_config
|
||||||
from sys import path
|
from sys import path
|
||||||
|
|
||||||
@ -64,7 +63,6 @@ if __name__ == '__main__':
|
|||||||
ssl_key = "{}/{}".format(path[0], 'key.pem')
|
ssl_key = "{}/{}".format(path[0], 'key.pem')
|
||||||
|
|
||||||
if read_config(("backend", "remote_access")):
|
if read_config(("backend", "remote_access")):
|
||||||
app.run(host="0.0.0.0", port=443,
|
app.run(host="0.0.0.0", port=443, ssl_context=(ssl_cert, ssl_key))
|
||||||
ssl_context=(ssl_cert, ssl_key))
|
|
||||||
else:
|
else:
|
||||||
app.run(port=443, ssl_context=(ssl_cert, ssl_key))
|
app.run(port=443)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user