1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

Fix the obvious issue

This commit is contained in:
Florent Daigniere
2023-08-09 19:10:07 +02:00
parent 8b890a84e9
commit e7e169f1c1

View File

@@ -45,8 +45,13 @@ command2 = [
# Wait for nginx to start
time.sleep(5)
class MyRequestHandler(SimpleHTTPRequestHandler):
def do_GET(self):
self.path = '/var/empty/'
return SimpleHTTPRequestHandler.do_GET(self)
def serve_one_request():
with HTTPServer(("0.0.0.0", 8008), SimpleHTTPRequestHandler) as server:
with HTTPServer(("0.0.0.0", 8008), MyRequestHandler) as server:
server.handle_request()
# Run certbot every day