From 14597ebe288f2139a43fe20513919f10bb321c03 Mon Sep 17 00:00:00 2001 From: iou1name Date: Thu, 12 Nov 2020 13:21:26 -0500 Subject: [PATCH] update buckler middleware --- buckler_aiohttp.py | 3 +-- config.py.template | 19 ++++++------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/buckler_aiohttp.py b/buckler_aiohttp.py index af5b14b..2281126 100644 --- a/buckler_aiohttp.py +++ b/buckler_aiohttp.py @@ -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() diff --git a/config.py.template b/config.py.template index 1a20f3b..e47060d 100644 --- a/config.py.template +++ b/config.py.template @@ -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", }