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

Commit

Permalink
Remove references to the upstream database in the API (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
AetherUnbound authored Jan 2, 2023
1 parent 530f183 commit b0eab25
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
8 changes: 0 additions & 8 deletions api/catalog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,6 @@
"PASSWORD": config("DJANGO_DATABASE_PASSWORD", default="deploy"),
"NAME": config("DJANGO_DATABASE_NAME", default="openledger"),
},
"upstream": {
"ENGINE": "django.db.backends.postgresql",
"HOST": config("UPSTREAM_DATABASE_HOST", default="localhost"),
"PORT": config("UPSTREAM_DATABASE_PORT", default=5433, cast=int),
"USER": config("UPSTREAM_DATABASE_USER", default="deploy"),
"PASSWORD": config("UPSTREAM_DATABASE_PASSWORD", default="deploy"),
"NAME": config("UPSTREAM_DATABASE_NAME", default="openledger"),
},
}

# Password validation
Expand Down
3 changes: 0 additions & 3 deletions api/env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ THUMBNAIL_PROXY_URL=http://thumbnails:8222

DJANGO_DATABASE_HOST=db

UPSTREAM_DATABASE_HOST=upstream_db
UPSTREAM_DATABASE_PORT=5432

DJANGO_MIGRATE_DB_ON_STARTUP=False

SEMANTIC_VERSION=1.0.0
Expand Down
6 changes: 0 additions & 6 deletions api/env.template
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ ALLOWED_HOSTS=172.17.0.1,host.docker.internal
#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

SEMANTIC_VERSION=1.0.0

#WATERMARK_ENABLED=False
Expand Down

0 comments on commit b0eab25

Please sign in to comment.