Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Remove the SENTRY_DSN value (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
krysal authored Aug 8, 2022
1 parent 180943d commit 30b77c2
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 62 deletions.
8 changes: 3 additions & 5 deletions api/catalog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,11 @@
# https://docs.djangoproject.com/en/4.0/releases/4.0/#csrf-trusted-origins-changes-4-0
CSRF_TRUSTED_ORIGINS = ["https://*.openverse.engineering"]

SENTRY_DSN = config(
"SENTRY_DSN",
default="https://[email protected]/6107216",
)
SENTRY_DSN = config("SENTRY_DSN", default="")

SENTRY_SAMPLE_RATE = config("SENTRY_SAMPLE_RATE", default=1.0, cast=float)

if not DEBUG:
if not DEBUG and SENTRY_DSN:
sentry_sdk.init(
dsn=SENTRY_DSN,
integrations=[DjangoIntegration()],
Expand Down
22 changes: 11 additions & 11 deletions api/env.docker
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
PYTHONUNBUFFERED="0"
PYTHONUNBUFFERED=0

DJANGO_SETTINGS_MODULE="catalog.settings"
DJANGO_SETTINGS_MODULE=catalog.settings
DJANGO_SECRET_KEY="ny#b__$$f6ry4wy8oxre97&-68u_0lk3gw(z=d40_dxey3zw0v1"
DJANGO_DEBUG_ENABLED="True"
DJANGO_DEBUG_ENABLED=True

ALLOWED_HOSTS="api.openverse.engineering,api-dev.openverse.engineering"
ALLOWED_HOSTS=api.openverse.engineering,api-dev.openverse.engineering,host.docker.internal

REDIS_HOST="cache"
REDIS_HOST=cache

THUMBNAIL_PROXY_URL="http://thumbnails:8222"
THUMBNAIL_PROXY_URL=http://thumbnails:8222

DJANGO_DATABASE_HOST="db"
DJANGO_DATABASE_HOST=db

UPSTREAM_DATABASE_HOST="upstream_db"
UPSTREAM_DATABASE_PORT="5432"
UPSTREAM_DATABASE_HOST=upstream_db
UPSTREAM_DATABASE_PORT=5432

SEMANTIC_VERSION="1.0.0"
SEMANTIC_VERSION=1.0.0

ELASTICSEARCH_URL="es"
ELASTICSEARCH_URL=es
92 changes: 46 additions & 46 deletions api/env.template
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
PYTHONUNBUFFERED="0"
PYTHONUNBUFFERED=0

DJANGO_SETTINGS_MODULE="catalog.settings"
DJANGO_SECRET_KEY="ny#b__$$f6ry4wy8oxre97&-68u_0lk3gw(z=d40_dxey3zw0v1"
DJANGO_DEBUG_ENABLED="True"
DJANGO_SETTINGS_MODULE=catalog.settings
DJANGO_SECRET_KEY=
DJANGO_DEBUG_ENABLED=True

# List of comma-separated hosts/domain names, e.g., "127.17.0.1,local.app"
ALLOWED_HOSTS="172.17.0.1,host.docker.internal"
# List of comma-separated hosts/domain names, e.g., 127.17.0.1,local.app
ALLOWED_HOSTS=172.17.0.1,host.docker.internal

#LOAD_BALANCER_URL=""
#LOAD_BALANCER_URL=

#USE_S3="False"
#LOGOS_BUCKET="openverse-api-logos-prod"
#USE_S3=False
#LOGOS_BUCKET=openverse-api-logos-prod

#DISABLE_GLOBAL_THROTTLING="True"
#DISABLE_GLOBAL_THROTTLING=True

#REDIS_HOST="cache"
#REDIS_PORT="6379"
#REDIS_PASSWORD=""
#REDIS_HOST=cache
#REDIS_PORT=6379
#REDIS_PASSWORD=

#THUMBNAIL_PROXY_URL="http://thumbnails:8222"
#THUMBNAIL_PROXY_URL=http://thumbnails:8222

#THUMBNAIL_WIDTH_PX="600"
#THUMBNAIL_JPG_QUALITY="80"
#THUMBNAIL_PNG_COMPRESSION="6"
#THUMBNAIL_WIDTH_PX=600
#THUMBNAIL_JPG_QUALITY=80
#THUMBNAIL_PNG_COMPRESSION=6

#DJANGO_DATABASE_HOST="db"
#DJANGO_DATABASE_PORT="5432"
#DJANGO_DATABASE_USER="deploy"
#DJANGO_DATABASE_PASSWORD="deploy"
#DJANGO_DATABASE_NAME="openledger"
#DJANGO_DATABASE_HOST=db
#DJANGO_DATABASE_PORT=5432
#DJANGO_DATABASE_USER=deploy
#DJANGO_DATABASE_PASSWORD=deploy
#DJANGO_DATABASE_NAME=openledger

#UPSTREAM_DATABASE_HOST="upstream_db"
#UPSTREAM_DATABASE_PORT="5432"
#UPSTREAM_DATABASE_USER="deploy"
#UPSTREAM_DATABASE_PASSWORD="deploy"
#UPSTREAM_DATABASE_NAME="openledger"
#UPSTREAM_DATABASE_HOST=upstream_db
#UPSTREAM_DATABASE_PORT=5432
#UPSTREAM_DATABASE_USER=deploy
#UPSTREAM_DATABASE_PASSWORD=deploy
#UPSTREAM_DATABASE_NAME=openledger

SEMANTIC_VERSION="1.0.0"
SEMANTIC_VERSION=1.0.0

#WATERMARK_ENABLED="False"
#WATERMARK_ENABLED=False

#ELASTICSEARCH_URL="es"
#ELASTICSEARCH_PORT="9200"
#ELASTICSEARCH_AWS_REGION="us-east-1"
#ELASTICSEARCH_URL=es
#ELASTICSEARCH_PORT=9200
#ELASTICSEARCH_AWS_REGION=us-east-1

#IMAGE_INDEX_NAME="image"
#AUDIO_INDEX_NAME="audio"
#IMAGE_INDEX_NAME=image
#AUDIO_INDEX_NAME=audio

#AWS_ACCESS_KEY_ID=""
#AWS_SECRET_ACCESS_KEY=""
#AWS_ACCESS_KEY_ID=
#AWS_SECRET_ACCESS_KEY=

#CONTACT_EMAIL="[email protected]"
#[email protected]

#EMAIL_SENDER=""
#EMAIL_HOST=""
#EMAIL_PORT="25"
#EMAIL_HOST_USER=""
#EMAIL_HOST_PASSWORD=""
#EMAIL_SENDER=
#EMAIL_HOST=
#EMAIL_PORT=25
#EMAIL_HOST_USER=
#EMAIL_HOST_PASSWORD=

#DEBUG_SCORES="False"
#USE_RANK_FEATURES="True"
#DEBUG_SCORES=False
#USE_RANK_FEATURES=True

IS_PROXIED="False"
IS_PROXIED=False

#SENTRY_SAMPLE_RATE=1.0
#SENTRY_DSN="https://[email protected]/6107216"
#SENTRY_DSN=

0 comments on commit 30b77c2

Please sign in to comment.