Skip to content

Commit

Permalink
Merge pull request #943 from moonstream-to/add-external-url
Browse files Browse the repository at this point in the history
Add spire external url.
  • Loading branch information
Andrei-Dolgolev authored Oct 26, 2023
2 parents 06629ee + 4f3688f commit ddfd2e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions moonstreamapi/configs/sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export MOONSTREAM_DB_URI_READ_ONLY="postgresql://<username>:<password>@<db_host>
export MOONSTREAM_CORS_ALLOWED_ORIGINS="http://localhost:3000,https://moonstream.to,https://www.moonstream.to"
export BUGOUT_BROOD_URL="https://auth.bugout.dev"
export BUGOUT_SPIRE_URL="https://spire.bugout.dev"
export BUGOUT_SPIRE_EXTERNAL_URL="https://spire.bugout.dev"
export MOONSTREAM_APPLICATION_ID="<issued_bugout_application_id>"
export MOONSTREAM_ADMIN_ACCESS_TOKEN="<Access_token_to_application_resources>"
export MOONSTREAM_POOL_SIZE=0
Expand Down
7 changes: 6 additions & 1 deletion moonstreamapi/moonstreamapi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
# Bugout
BUGOUT_BROOD_URL = os.environ.get("BUGOUT_BROOD_URL", "https://auth.bugout.dev")
BUGOUT_SPIRE_URL = os.environ.get("BUGOUT_SPIRE_URL", "https://spire.bugout.dev")
BUGOUT_SPIRE_EXTERNAL_URL = os.environ.get(
"BUGOUT_SPIRE_EXTERNAL_URL", "https://spire.bugout.dev"
)


bugout_client = Bugout(brood_api_url=BUGOUT_BROOD_URL, spire_api_url=BUGOUT_SPIRE_URL)
bugout_client = Bugout(
brood_api_url=BUGOUT_BROOD_URL, spire_api_url=BUGOUT_SPIRE_EXTERNAL_URL
)

BUGOUT_REQUEST_TIMEOUT_SECONDS = 5

Expand Down
2 changes: 1 addition & 1 deletion moonstreamapi/moonstreamapi/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Moonstream library and API version.
"""

MOONSTREAMAPI_VERSION = "0.3.1"
MOONSTREAMAPI_VERSION = "0.3.2"

0 comments on commit ddfd2e5

Please sign in to comment.