Validation 27/02/22 - 22h21
parent
ada9b53961
commit
b26e053bd4
9
main.py
9
main.py
|
@ -17,6 +17,7 @@ import class_mgt as cm
|
|||
import Dev_api_functions as dev_function
|
||||
from flask_cors import CORS, cross_origin
|
||||
import time
|
||||
from OpenSSL import SSL
|
||||
|
||||
DEBUG_LEVEL = logging.DEBUG
|
||||
LOG_FILE_NAME = "./Log/log_file.log"
|
||||
|
@ -771,5 +772,11 @@ if __name__ == '__main__':
|
|||
#pc.similaire()
|
||||
#pc.textdist()
|
||||
#pc.test()
|
||||
app.run(host='127.0.0.1', port=5000, debug=True)
|
||||
context = SSL.Context(SSL.SSLv23_METHOD)
|
||||
#context.use_privatekey_file('./ssl2/key.pem')
|
||||
#context.use_certificate_file('./ssl2/cert.pem')
|
||||
|
||||
context = ('./ssl2/key.pem', './ssl2/cert.pem')
|
||||
|
||||
app.run(host='127.0.0.1', port=5000, debug=True, threaded=True)
|
||||
#app.run(host='192.168.0.21', port=5000, debug=True)
|
||||
|
|
Loading…
Reference in New Issue