aboutsummaryrefslogtreecommitdiff
path: root/blog_experiment/blog/__main__.py
blob: b936500d86065dd13d414ad094a93645569a092c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import logging

from bicephalus import main as bicephalus_main
from bicephalus import otel
from bicephalus import ssl

import blog


def main():
    otel.configure_logging(logging.INFO)
    with ssl.temporary_ssl_context("localhost") as ssl_context:
        bicephalus_main.main(blog.handler, ssl_context, 8000)


if __name__ == "__main__":
    main()