sedi-relay/relay/__init__.py

30 lines
423 B
Python
Raw Normal View History

2018-08-10 19:19:38 +00:00
from . import logging
import asyncio
import aiohttp
import aiohttp.web
2018-08-10 19:59:46 +00:00
import yaml
def load_config():
2018-10-30 01:42:17 +00:00
with open('relay.yaml') as f:
2018-08-10 19:59:46 +00:00
return yaml.load(f)
CONFIG = load_config()
2018-08-10 19:19:38 +00:00
2018-08-10 21:14:22 +00:00
from .http_signatures import http_signatures_middleware
app = aiohttp.web.Application(middlewares=[
http_signatures_middleware
])
2018-08-10 19:19:38 +00:00
2018-08-10 19:59:46 +00:00
from . import database
2018-08-10 19:19:38 +00:00
from . import actor
from . import webfinger
from . import default