relay/relay/__init__.py
2018-11-18 22:03:53 +00:00

32 lines
471 B
Python

from . import logging
import asyncio
import aiohttp
import aiohttp.web
import yaml
def load_config():
with open('relay.yaml') as f:
return yaml.load(f)
CONFIG = load_config()
from .http_signatures import http_signatures_middleware
app = aiohttp.web.Application(middlewares=[
http_signatures_middleware
])
from . import database
from . import actor
from . import webfinger
from . import default
from . import nodeinfo
from . import http_stats