Skip to main content

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​

FieldTypeDescriptionDefault
portu16Port the bridge listens on.8081
ipstringIP address the bridge listens on.0.0.0.0
tokenstringSecurity token required for bridge requests.TOKEN
nodesarrayList of configured PACS nodes (see Nodes section).[]

Node Configuration​

Each item in the nodes list represents a Proteus PACS instance.

FieldTypeDescription
namestringUnique, readable identifier (e.g., "MainSite"). Used as source in searches.
baseUrlstringBase URL of the PACS API (e.g., https://pacs.server.com).
aeTitlestringDICOM server AE Title.
tokenstringBearer token to authenticate against the PACS API.
v1Tokenbool(Optional) If true, uses the v1 endpoint for tokens. Defaults to false (v2).
viewerstring(Optional) Template to generate web viewer links.
filmstring(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 /mobile if the request is from a mobile device, otherwise left empty.