Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/env/dev.env.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
DEBUG=True
SECRET_KEY=foo
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]

SQL_ENGINE=django.db.backends.postgresql
SQL_DATABASE=balancer_dev
SQL_USER=balancer
SQL_PASSWORD=balancer
SQL_HOST=db
SQL_PORT=5432
DATABASE=postgres

LOGIN_REDIRECT_URL=
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
Expand Down
1 change: 0 additions & 1 deletion deploy/manifests/balancer/base/secret.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ metadata:
namespace: balancer
type: Opaque
stringData:
DATABASE: postgres
DEBUG: '1'
LOGIN_REDIRECT_URL: ''
OPENAI_API_KEY: openapi_key_here
Expand Down
2 changes: 1 addition & 1 deletion server/balancer_backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Fetching the value from the environment and splitting to list if necessary.
# Fallback to '*' if the environment variable is not set.
ALLOWED_HOSTS = os.environ.get("DJANGO_ALLOWED_HOSTS", "*").split()
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS", "*").split()

# If the environment variable contains '*', the split method would create a list with an empty string.
# So you need to check for this case and adjust accordingly.
Expand Down
2 changes: 1 addition & 1 deletion server/entrypoint.prod.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

if [ "$DATABASE" = "postgres" ]
if [ "$SQL_ENGINE" = "django.db.backends.postgresql" ]
then
echo "Waiting for postgres..."

Expand Down
2 changes: 1 addition & 1 deletion server/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

if [ "$DATABASE" = "postgres" ]
if [ "$SQL_ENGINE" = "django.db.backends.postgresql" ]
then
echo "Waiting for postgres..."

Expand Down