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

This commit is contained in:
Peter Stockings
2024-03-27 21:56:02 +11:00
parent 1a496d2441
commit 01d24c7b29

2
app.py
View File

@@ -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'