diff --git a/webapp/webapp/settings/base.py b/webapp/webapp/settings/base.py index eff8ca4..d8ad2a3 100644 --- a/webapp/webapp/settings/base.py +++ b/webapp/webapp/settings/base.py @@ -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/ diff --git a/webapp/webapp/settings/prod.py b/webapp/webapp/settings/prod.py index a888310..d46a612 100644 --- a/webapp/webapp/settings/prod.py +++ b/webapp/webapp/settings/prod.py @@ -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 = [ @@ -69,7 +71,7 @@ '.ManifestStaticFilesStorage') sentry_sdk.init( - dsn="https://426e64399bbafe4210c4fa647c7a2f5b@sentry.galaxyproject.org/20", + dsn=SENTRY_DNS_URL, # Set traces_sample_rate to 1.0 to capture 100% # of transactions for tracing. traces_sample_rate=1.0,