mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-06-05 21:59:23 +02:00
Fix the deploy build
This commit is contained in:
4
app.py
4
app.py
@ -58,8 +58,8 @@ app.secret_key = get_secret_key('flask')
|
||||
JWT_SECRET = get_secret_key('jwt')
|
||||
JWT = JSONWebSignatureSerializer(JWT_SECRET)
|
||||
|
||||
with open('config/jwt_token', 'w+') as f:
|
||||
f.write(JWT.dumps({'type': 'admin_token'}))
|
||||
with open('config/jwt_token', 'wb+') as f:
|
||||
f.write(JWT.dumps({'type': 'admin_token'})) # type: ignore
|
||||
|
||||
SIG_AUTH = HTTPSigAuth(ID+'#main-key', KEY.privkey)
|
||||
|
||||
|
Reference in New Issue
Block a user