Skip to content

Commit

Permalink
Merge pull request #9 from internetstandards/docker
Browse files Browse the repository at this point in the history
Fix port for certstream service
  • Loading branch information
aequitas authored Nov 19, 2024
2 parents 1f60337 + 6a58280 commit be358d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
CTLSSA_DJANGO_DATABASE: production
CTLSSA_DB_ENGINE: postgresql_psycopg2
CTLSSA_DB_HOST: db
CTLSSA_CERTSTREAM_SERVER_URL: ws://certstream
CTLSSA_CERTSTREAM_SERVER_URL: ws://certstream:4000
# uwsgi reloads on SIGTERM, so use SIGINT instead
# https://uwsgi-docs.readthedocs.io/en/latest/Management.html#signals-for-controlling-uwsgi
stop_signal: SIGINT
Expand Down Expand Up @@ -51,7 +51,7 @@ services:
CTLSSA_DJANGO_DATABASE: production
CTLSSA_DB_ENGINE: postgresql_psycopg2
CTLSSA_DB_HOST: db
CTLSSA_CERTSTREAM_SERVER_URL: ws://certstream
CTLSSA_CERTSTREAM_SERVER_URL: ws://certstream:4000
entrypoint: ctlssa
command: ingest
restart: always
Expand Down
2 changes: 1 addition & 1 deletion src/ctlssa/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []
ALLOWED_HOSTS = os.environ.get("CTLSSA_ALLOWED_HOSTS", "").split(",")


# Application definition
Expand Down

0 comments on commit be358d5

Please sign in to comment.