Skip to content

Commit

Permalink
Have the DICOM listener listen on all IP addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
pchlap committed Aug 11, 2022
1 parent 5e23974 commit 697e10d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ redis-server --daemonize yes
celery --app=service:celery beat --loglevel=INFO &
celery --app=service:celery worker --loglevel=INFO &

# Start the DICOM listener for the service
celery --app=service:celery call platipy.backend.tasks.run_dicom_listener

# Run the gunicorn server
CERT_FILE=service.crt
KEY_FILE=service.key
Expand All @@ -18,6 +21,3 @@ else
echo "Running without SSL, not suitable for production use."
exec gunicorn -b :8000 --timeout 300 --graceful-timeout 60 --access-logfile - --error-logfile - service:app
fi

# Start the DICOM listener for the service
celery --app=service:celery call platipy.backend.tasks.run_dicom_listener
5 changes: 4 additions & 1 deletion platipy/backend/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ def series_recieved(dicom_path):

try:
dicom_listener = DicomListener(
port=listen_port, ae_title=listen_ae_title, on_released_callback=series_recieved
host="0.0.0.0",
port=listen_port,
ae_title=listen_ae_title,
on_released_callback=series_recieved
)

dicom_listener.start()
Expand Down

0 comments on commit 697e10d

Please sign in to comment.