update buckler middleware
This commit is contained in:
parent
9641a510e5
commit
4cfd4936d8
|
@ -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()
|
||||
|
@ -34,6 +33,7 @@ async def buckler_session(request, handler):
|
|||
resp.set_cookie(
|
||||
'redirect',
|
||||
request.url,
|
||||
domain=config.server_domain,
|
||||
secure=True,
|
||||
httponly=True)
|
||||
#samesite='strict')
|
||||
|
@ -55,6 +55,7 @@ async def buckler_session(request, handler):
|
|||
resp.set_cookie(
|
||||
'userid',
|
||||
user_id,
|
||||
domain=config.server_domain,
|
||||
max_age=30*24*60*60,
|
||||
secure=True,
|
||||
httponly=True)
|
||||
|
@ -62,6 +63,7 @@ async def buckler_session(request, handler):
|
|||
resp.set_cookie(
|
||||
'session',
|
||||
user_sid,
|
||||
domain=config.server_domain,
|
||||
max_age=30*24*60*60,
|
||||
secure=True,
|
||||
httponly=True)
|
||||
|
|
|
@ -3,10 +3,14 @@
|
|||
Configuration settings for the Scorch musc streaming app.
|
||||
`url_prefix` is the root path you wish app to reside at
|
||||
eg. https://example.com/scorch.
|
||||
`music_dir` is the filesystem directory containing library being served.
|
||||
`static_prefix` is the root path your static files are being served at.
|
||||
`buckler` specifies settings pertaining to the Buckler server.
|
||||
"""
|
||||
server_domain = 'steelbea.me'
|
||||
url_prefix = '/scorch'
|
||||
music_dir = "/home/iou1name/music/Music"
|
||||
music_dir = "/home/iou1name/music/Music/"
|
||||
static_prefix = "/scorch/opus/"
|
||||
db = {
|
||||
'database': 'scorch',
|
||||
'user': 'scorch',
|
||||
|
|
Loading…
Reference in New Issue
Block a user