update buckler middleware

This commit is contained in:
iou1name 2020-11-12 13:18:19 -05:00
parent c80fe8eac4
commit dc82d87d67
2 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class BucklerSessionInterface(SessionInterface):
response.set_cookie(
'userid',
session.cookies['userid'],
domain=config.server_domain,
max_age=30*24*60*60,
secure=True,
httponly=True,
@ -81,6 +82,7 @@ class BucklerSessionInterface(SessionInterface):
response.set_cookie(
'session',
session.cookies['session'],
domain=config.server_domain,
max_age=30*24*60*60,
secure=True,
httponly=True,
@ -108,6 +110,7 @@ def require_auth():
resp.set_cookie(
'redirect',
request.url,
domain=config.server_domain,
secure=True,
httponly=True,
samesite='strict')

View File

@ -12,6 +12,7 @@ FEEDS = [
"http://website2.com/rss",
]
server_domain = 'steelbea.me'
buckler = {
'url': "http://127.0.0.1:5400/buckler",
'app_id': 1,