hurl/integration/ssl/server.py
2022-02-05 18:15:41 +01:00

16 lines
306 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"))