Skip to content

Commit

Permalink
Change the default port for the search api
Browse files Browse the repository at this point in the history
The GDS-managed macOS system includes a VPN tool called Cisco
AnyConnect; the latest version of this has a management daemon that
starts at boot and listens on port 5001, conflicting with the port for
the search api.

As we are unable to change the VPN tool, instead we have to change the
port for the search api :(
  • Loading branch information
lfdebrux committed Nov 6, 2019
1 parent 13eae08 commit 20df55a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .flaskenv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DM_API_PORT=5000
DM_SEARCH_API_PORT=5001
DM_SEARCH_API_PORT=5009

FLASK_APP=application:application
FLASK_ENV=development
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Development(Config):
DM_API_AUTH_TOKENS = 'myToken'
DM_API_CALLBACK_AUTH_TOKENS = 'myToken'
DM_SEARCH_API_AUTH_TOKEN = 'myToken'
DM_SEARCH_API_URL = f"http://localhost:{os.getenv('DM_SEARCH_API_PORT', 5001)}"
DM_SEARCH_API_URL = f"http://localhost:{os.getenv('DM_SEARCH_API_PORT', 5009)}"


class Live(Config):
Expand Down

0 comments on commit 20df55a

Please sign in to comment.