From 01d24c7b29048abca83f3fbc1d14ce1f7fe2e55b Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Wed, 27 Mar 2024 21:56:02 +1100 Subject: [PATCH] Testing: In the current setup function executes js functions on isolator through a rest api and it calls the external address https://isolator.peterstockings.com/execute, switching to interal http://isolator.web:5000/execute. Im checking if this results in a speed up --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 211bb16..f7bb776 100644 --- a/app.py +++ b/app.py @@ -36,7 +36,7 @@ class User(UserMixin): return None -API_URL = 'https://isolator.peterstockings.com/execute' #'http://127.0.0.1:5000/execute' +API_URL = os.environ.get('API_URL', 'http://isolator.web:5000/execute') # 'https://isolator.peterstockings.com/execute' 'http://127.0.0.1:5000/execute' DEFAULT_FUNCTION_NAME = 'foo'