update buckler middleware

This commit is contained in:
iou1name 2020-11-12 13:21:26 -05:00
parent e6b95c16bf
commit 14597ebe28
2 changed files with 7 additions and 15 deletions

View File

@ -24,8 +24,7 @@ async def buckler_session(request, handler):
'app_id': config.buckler['app_id'], 'app_id': config.buckler['app_id'],
'app_key': config.buckler['app_key'], 'app_key': config.buckler['app_key'],
'userid': user_id, 'userid': user_id,
'session': user_sid 'session': user_sid }
}
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
async with session.get(url, params=params) as resp: async with session.get(url, params=params) as resp:
data = await resp.json() data = await resp.json()

View File

@ -1,23 +1,16 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
""" """
Configuration settings for the Scorch musc streaming app. Configuration settings for the Stickup email management app.
`url_prefix` is the root path you wish app to reside at `url_prefix` is the root path you wish app to reside at
eg. https://example.com/scorch. eg. https://example.com/stickup.
`buckler` specifies settings pertaining to the Buckler server. `buckler` specifies settings pertaining to the Buckler server.
""" """
url_prefix = '/scorch' server_domain = 'steelbea.me'
music_dir = "/home/iou1name/music/Music" url_prefix = '/stickup'
db = {
'database': 'scorch',
'user': 'scorch',
'password': """password""",
'host': 'localhost',
'port': 5432,
}
buckler = { buckler = {
'url': "http://127.0.0.1:5400/buckler", 'url': "https://steelbea.me/buckler",
'app_id': 1, 'app_id': 1,
'app_key': """password""", 'app_key': """password""",
'login_url': "/buckler/login", 'login_url': "https://steelbea.me/buckler/login",
} }