feat: cleanup README and add test-ca files for testing
This commit is contained in:
1
sample-server/.python-version
Normal file
1
sample-server/.python-version
Normal file
@ -0,0 +1 @@
|
||||
3.6.4
|
1
sample-server/fullchain.pem
Symbolic link
1
sample-server/fullchain.pem
Symbolic link
@ -0,0 +1 @@
|
||||
../test-ca/end.fullchain
|
1
sample-server/key.pem
Symbolic link
1
sample-server/key.pem
Symbolic link
@ -0,0 +1 @@
|
||||
../test-ca/end.key
|
14
sample-server/main.py
Normal file
14
sample-server/main.py
Normal file
@ -0,0 +1,14 @@
|
||||
from flask import Flask, request
|
||||
app = Flask(__name__)
|
||||
app.debug = True
|
||||
|
||||
@app.route('/')
|
||||
def hello_world():
|
||||
print(f"{request.method} {request.url}")
|
||||
return 'Hello, World!'
|
||||
|
||||
app.run(
|
||||
debug=True,
|
||||
ssl_context=('fullchain.pem', 'key.pem'),
|
||||
port=5000
|
||||
)
|
Reference in New Issue
Block a user