hurl/integration/ssl/server.py
2021-02-06 13:38:55 +01:00

15 lines
305 B
Python
Executable File

#!/usr/bin/python
from flask import Flask
import os
app = Flask(__name__)
@app.route("/hello")
def hello():
return "Hello World!"
if __name__ == "__main__":
ssl_dir = os.path.dirname(os.path.realpath(__file__))
app.run(port=8001, ssl_context=(ssl_dir + '/cert.pem', ssl_dir + '/key.pem'))