Skip to content

Commit 9f821db

Browse files
committed
rename GATOR_CLIENT_URL to GATOR_HOST
1 parent 1ffef76 commit 9f821db

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ export DOCKER_WEB_VOLUME=.:/app
9797
#export DOCKER_WEB_CPUS=0
9898
#export DOCKER_WEB_MEMORY=0
9999

100-
export GATOR_CLIENT_URL=http://localhost:5000
100+
export GATOR_HOST=http://localhost:5000

config/app_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
'password': os.getenv('MONGODB_PASSWORD'),
1515
}
1616

17-
GATOR_CLIENT_URL = os.getenv('GATOR_CLIENT_URL')
17+
GATOR_HOST = os.getenv('GATOR_HOST')

sqrl/extensions/gator_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ def init_app(self, app: Flask) -> None:
2121
"""Initialise the Gator client with a Flask app context."""
2222
self.app = app
2323

24-
base_url = app.config.get('GATOR_CLIENT_URL', None)
24+
base_url = app.config.get('GATOR_HOST', None)
2525
if base_url is None:
26-
raise ValueError('GATOR_CLIENT_URL not set')
26+
raise ValueError('GATOR_HOST not set')
2727

2828
self.client = GatorClient(
2929
base_url,

0 commit comments

Comments
 (0)