Skip to content

Commit 9538b00

Browse files
committed
Add API endpoint and key env vars to compose and example env file
Amend the default path on DicomUploader.
1 parent 6e6c999 commit 9538b00

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

.env.development

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ AZURE_RELAY_HYBRID_CONNECTION=name-of-your-choice-relay-test-hc
44
AZURE_RELAY_KEY_NAME=RootManageSharedAccessKey
55
AZURE_RELAY_SHARED_ACCESS_KEY=YOUR_SHARED_ACCESS_KEY_HERE
66

7+
CLOUD_API_ENDPOINT=https://localhost:8000/api/v1/dicom
8+
CLOUD_API_TOKEN=testtoken
79
# MWL Server Configuration
810
MWL_AET=SCREENING_MWL
911
MWL_PORT=4243

compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ services:
1111
- pacs-storage:/var/lib/pacs/storage
1212
- pacs-db:/var/lib/pacs
1313
environment:
14+
- CLOUD_API_ENDPOINT=${CLOUD_API_ENDPOINT}
15+
- CLOUD_API_TOKEN=${CLOUD_API_TOKEN}
1416
- PACS_AET=SCREENING_PACS
1517
- PACS_PORT=4244
1618
- PACS_STORAGE_PATH=/var/lib/pacs/storage

src/services/dicom/dicom_uploader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class DICOMUploader:
1818
def __init__(self, api_endpoint: str | None = None, timeout: int = 30, verify_ssl: bool = True):
19-
self.api_endpoint = api_endpoint or os.getenv("CLOUD_API_ENDPOINT", "http://localhost:8000/api/dicom/upload/")
19+
self.api_endpoint = api_endpoint or os.getenv("CLOUD_API_ENDPOINT", "http://localhost:8000/api/v1/dicom")
2020
self.timeout = timeout
2121
self.verify_ssl = verify_ssl
2222

0 commit comments

Comments
 (0)