fix: Set HNS address cache to 7 days
All checks were successful
Build Docker / Build Image (push) Successful in 34s

This commit is contained in:
Nathan Woodburn 2023-11-02 21:53:23 +11:00
parent 66acd69bec
commit 20d59f7820
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -70,7 +70,8 @@ def wallet(path):
address = requests.get('http://100.66.107.77:8080')
# Set cookie
resp = make_response(address.text, 200, {'Content-Type': 'text/plain'})
resp.set_cookie('HNS', address.text)
# Cookie should last 1 week
resp.set_cookie('HNS', address.text, max_age=604800)
return resp