Commit 01f8a5e3 authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

put ssl

parent 82d7b84b
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -97,5 +97,12 @@ certification_file.close()

# the applicacions starts here in every interface and port 8080
# ssl -> contains backoffice_cert.crt and backoffice_key.key
# if __name__ == "__main__":
#     app.run(debug=True, host='0.0.0.0', port=8080)



# NOS LO FUMAMOS -> SSL 
if __name__ == "__main__":
    app.run(debug=True, host='0.0.0.0', port=8080)
    app.run(debug=True, host='0.0.0.0', port=8080, ssl_context=(
        "/usr/src/app/backoffice_service/certs/backoffice_cert.crt", "/usr/src/app/backoffice_service/certs/backoffice_key.key"))