2020-02-09 21:21:06 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
loglevel = "error"
|
2021-06-14 12:21:11 +02:00
|
|
|
keepalive = 120
|
2021-06-14 12:39:04 +02:00
|
|
|
timeout = 90
|
|
|
|
grateful_timeout = 120
|
2020-02-09 21:21:06 +01:00
|
|
|
|
2020-02-21 17:22:11 +01:00
|
|
|
|
2020-07-02 15:41:49 +02:00
|
|
|
def on_starting(server):
|
|
|
|
print(
|
|
|
|
"""
|
|
|
|
\x1b[1;34m"""
|
|
|
|
+ r"""
|
2020-02-09 21:21:06 +01:00
|
|
|
_____ _ _ _
|
|
|
|
| __ \ | | | | | |
|
|
|
|
| |__) |__ ___| |_| |__| | ___ __ _
|
|
|
|
| ___/ _ \/ __| __| __ |/ _ \ / _` |
|
|
|
|
| | | (_) \__ \ |_| | | | (_) | (_| |
|
|
|
|
|_| \___/|___/\__|_| |_|\___/ \__, |
|
|
|
|
__/ |
|
|
|
|
|___/
|
2020-02-21 17:22:11 +01:00
|
|
|
"""
|
2020-07-02 15:41:49 +02:00
|
|
|
+ """
|
2020-02-09 21:21:06 +01:00
|
|
|
\x1b[0m
|
2020-07-02 15:41:49 +02:00
|
|
|
"""
|
|
|
|
)
|
2020-04-02 00:53:18 +02:00
|
|
|
print("Server running on \x1b[4mhttp://{}:{}\x1b[0m".format(*server.address[0]))
|
2020-02-09 21:21:06 +01:00
|
|
|
print("Questions? Please shoot us an email at \x1b[4mhey@posthog.com\x1b[0m")
|
2020-02-21 17:22:11 +01:00
|
|
|
print("\nTo stop, press CTRL + C")
|