From 9dee5c24e420311585fd616e53b9ced3c7eaece7 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 2 Nov 2023 22:05:48 +1100 Subject: [PATCH] feat: Get hip2 address from docker hip2server --- server.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server.py b/server.py index 5a94e7f..ee142f1 100644 --- a/server.py +++ b/server.py @@ -67,15 +67,13 @@ def wallet(path): print(request.cookies.get('HNS')) 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 resp = make_response(address.text, 200, {'Content-Type': 'text/plain'}) # Cookie should last 1 week resp.set_cookie('HNS', address.text, max_age=604800) return resp - - return send_from_directory('.well-known/wallets', path, mimetype='text/plain')