Skip to content

Commit

Permalink
Add NATS_ADDRESS environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Sep 9, 2024
1 parent 596f422 commit 66a7704
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chris_backend/config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@
CORS_EXPOSE_HEADERS = ['Allow', 'Content-Type', 'Content-Length']


# NATS settings
NATS_ADDRESS = 'nats://nats:4222'

# Celery settings

#CELERY_BROKER_URL = 'amqp://guest:guest@localhost'
Expand Down
5 changes: 5 additions & 0 deletions chris_backend/config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def get_secret(setting, secret_type=env):
CORS_ALLOWED_ORIGINS = get_secret('DJANGO_CORS_ALLOWED_ORIGINS', env.list)


# NATS SETTINGS
# ------------------------------------------------------------------------------
NATS_ADDRESS = get_secret('NATS_ADDRESS')


# CELERY SETTINGS
# ------------------------------------------------------------------------------
CELERY_BROKER_URL = get_secret('CELERY_BROKER_URL')
Expand Down
2 changes: 2 additions & 0 deletions docker-compose_just.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ services:
condition: service_healthy
rabbitmq:
condition: service_started
nats:
condition: service_started
cube-nonroot-user-volume-fix:
condition: service_completed_successfully
networks:
Expand Down
1 change: 1 addition & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ PyYAML==6.0.1
whitenoise[brotli]==6.5.0
PyJWT===2.8.0
channels[daphne]==4.1.0
nats-py==2.9.0

0 comments on commit 66a7704

Please sign in to comment.