mirror of
https://github.com/YunoHost/check-http.git
synced 2024-09-03 19:56:42 +02:00
init
This commit is contained in:
commit
de00bfed5c
2 changed files with 15 additions and 0 deletions
2
requirements.txt
Normal file
2
requirements.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
sanic
|
||||
aiohttp
|
13
server.py
Normal file
13
server.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from sanic import Sanic
|
||||
from sanic.response import html
|
||||
|
||||
app = Sanic()
|
||||
|
||||
|
||||
@app.route("/")
|
||||
async def test(request):
|
||||
return html("You aren't really supposed to use this website using your browser.<br><br>It's a small server to check if a YunoHost instance can be reached by http before trying to instal a LE certificate.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host="0.0.0.0", port=7000)
|
Loading…
Reference in a new issue