mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-14 11:37:59 +00:00
30 lines
402 B
Python
30 lines
402 B
Python
from . import logging
|
|
|
|
|
|
import asyncio
|
|
import aiohttp
|
|
import aiohttp.web
|
|
import yaml
|
|
|
|
|
|
def load_config():
|
|
with open('viera.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
|
|
|