Configuration
Proteus Bridge is configured via a config.yaml file at the project root. This file defines both the bridge server and the PACS nodes it communicates with.
Global Structure
| Field | Type | Description | Default |
|---|---|---|---|
port | u16 | Port the bridge listens on. | 8081 |
ip | string | IP address the bridge listens on. | 0.0.0.0 |
token | string | Security token required for bridge requests. | TOKEN |
nodes | array | List of configured PACS nodes (see Nodes section). | [] |
Node Configuration
Each item in the nodes list represents a Proteus PACS instance.
| Field | Type | Description |
|---|---|---|
name | string | Unique, readable identifier (e.g., "MainSite"). Used as source in searches. |
baseUrl | string | Base URL of the PACS API (e.g., https://pacs.server.com). |
aeTitle | string | DICOM server AE Title. |
token | string | Bearer token to authenticate against the PACS API. |
v1Token | bool | (Optional) If true, uses the v1 endpoint for tokens. Defaults to false (v2). |
viewer | string | (Optional) Template to generate web viewer links. |
film | string | (Optional) Template to generate print system links (used for Key Objects). |
config.yaml Example
port: 8080
ip: "0.0.0.0"
token: "my_super_secret"
nodes:
- name: "SiteA"
baseUrl: "http://pacs-site-a.local"
aeTitle: "PROTEUS_A"
token: "token_pacs_a"
viewer: "http://pacs-site-a.local/viewer%mobile%?id=%ids%&src=%source%&token=%token%"
film: "http://pacs-site-a.local/film?id=%ids%&token=%token%"
- name: "SiteB"
baseUrl: "http://pacs-site-b.com"
aeTitle: "PROTEUS_B"
token: "token_pacs_b"
v1Token: true
viewer: "http://pacs-site-b.com/app/viewer?study=%ids%"
URL Templates (Viewer/Film)
Templates in viewer and film accept the following placeholders:
%token%: Replaced with a temporary view token generated by the PACS.%source%: Replaced with the node name (name).%ids%: Replaced with comma-separated Study Instance UIDs.%mobile%: Replaced with/mobileif the request is from a mobile device, otherwise left empty.