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_key': config.buckler['app_key'],
'userid': user_id,
'session': user_sid
}
'session': user_sid }
async with aiohttp.ClientSession() as session:
async with session.get(url, params=params) as resp:
data = await resp.json()

View File

@ -1,23 +1,16 @@
#!/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
eg. https://example.com/scorch.
eg. https://example.com/stickup.
`buckler` specifies settings pertaining to the Buckler server.
"""
url_prefix = '/scorch'
music_dir = "/home/iou1name/music/Music"
db = {
'database': 'scorch',
'user': 'scorch',
'password': """password""",
'host': 'localhost',
'port': 5432,
}
server_domain = 'steelbea.me'
url_prefix = '/stickup'
buckler = {
'url': "http://127.0.0.1:5400/buckler",
'url': "https://steelbea.me/buckler",
'app_id': 1,
'app_key': """password""",
'login_url': "/buckler/login",
'login_url': "https://steelbea.me/buckler/login",
}