-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from globus-labs/new-endpoint
New endpoint
- Loading branch information
Showing
6 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
import os | ||
from typing import Union | ||
|
||
|
||
TOKEN_EXCHANGE = "http://3.220.110.101/" | ||
# TOKEN_EXCHANGE = "http://3.220.110.101/" | ||
DIASPORA_RESOURCE_SERVER = "2b9d2f5c-fa32-45b5-875b-b24cd343b917" | ||
|
||
|
||
def _get_envname(): | ||
return os.getenv("DIASPORA_SDK_ENVIRONMENT", "production") | ||
|
||
def get_web_service_url(envname: Union[str, None] = None) -> str: | ||
env = envname or _get_envname() | ||
urls = { | ||
"production": "https://diaspora-web-service.ml22sevubfnks.us-east-1.cs.amazonlightsail.com", | ||
"dev": "https://diaspora-web-service-dev.ml22sevubfnks.us-east-1.cs.amazonlightsail.com", | ||
"local": "http://localhost:8000", | ||
} | ||
|
||
return urls.get(env, urls["production"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.2.9" | ||
__version__ = "0.3.0" |