feat: Get hip2 address from docker hip2server
All checks were successful
Build Docker / Build Image (push) Successful in 27s
All checks were successful
Build Docker / Build Image (push) Successful in 27s
This commit is contained in:
parent
20d59f7820
commit
9dee5c24e4
@ -67,15 +67,13 @@ def wallet(path):
|
|||||||
print(request.cookies.get('HNS'))
|
print(request.cookies.get('HNS'))
|
||||||
return make_response(request.cookies.get('HNS'), 200, {'Content-Type': 'text/plain'})
|
return make_response(request.cookies.get('HNS'), 200, {'Content-Type': 'text/plain'})
|
||||||
|
|
||||||
address = requests.get('http://100.66.107.77:8080')
|
address = requests.get('http://hip02-server:3000')
|
||||||
# Set cookie
|
# Set cookie
|
||||||
resp = make_response(address.text, 200, {'Content-Type': 'text/plain'})
|
resp = make_response(address.text, 200, {'Content-Type': 'text/plain'})
|
||||||
# Cookie should last 1 week
|
# Cookie should last 1 week
|
||||||
resp.set_cookie('HNS', address.text, max_age=604800)
|
resp.set_cookie('HNS', address.text, max_age=604800)
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return send_from_directory('.well-known/wallets', path, mimetype='text/plain')
|
return send_from_directory('.well-known/wallets', path, mimetype='text/plain')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user