Skip to content

Commit

Permalink
Merge pull request #185 from usegalaxy-au/dev
Browse files Browse the repository at this point in the history
Update settings
  • Loading branch information
neoformit authored Jan 13, 2025
2 parents 8776cff + 4f096b8 commit 0a6a1a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions webapp/webapp/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,6 @@

# API auth
GALAXY_API_KEY = os.getenv('GALAXY_API_KEY')
GITHUB_API_TOKEN = os.getenv('GITHUB_API_TOKEN')

if not GITHUB_API_TOKEN:
print("Warning: GITHUB_API_TOKEN not set. Requests to api.github.com will"
" be rate-limited at 60 requests per hour which may result in"
" errors.")

# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/
Expand Down
4 changes: 3 additions & 1 deletion webapp/webapp/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
RECAPTCHA_PUBLIC_KEY = os.environ.get('RECAPTCHA_SITE_KEY')
RECAPTCHA_PRIVATE_KEY = os.environ.get('RECAPTCHA_SECRET_KEY')

SENTRY_DNS_URL = os.environ.get('SENTRY_DNS_URL')

# See base.py for mail config, read from .env

ADMINS = [
Expand All @@ -69,7 +71,7 @@
'.ManifestStaticFilesStorage')

sentry_sdk.init(
dsn="https://[email protected]/20",
dsn=SENTRY_DNS_URL,
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=1.0,
Expand Down

0 comments on commit 0a6a1a2

Please sign in to comment.