Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ See [File Structure](./file-structure.md) for more details on the file structure
There are two ways to install Static DICOMweb. First, the command line tools are available published in npm. This is easiest if you are just running locally. The second option is to install from source code, locally.
A third option is to run the tools and deployment in a docker container.

## Prerequisite
When you choose to install the pre-built version, or build the code yourself, you will need [bun](https://www.npmjs.com/package/bun) installed, e.g.
```bash
npm install -g bun
```

## NPM Install

To install the command line tools, you need to have a current version of node and npm installed, then run:
Expand Down
29 changes: 27 additions & 2 deletions docs/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ http {
try_files /dicomweb/studies/$1/index.json.gz =204;
}

location ~ ^/dicomweb/studies/([0-9.]+)/thumbnail$ {
default_type image/jpeg;
try_files /dicomweb/studies/$1/thumbnail =204;
}

location ~ ^/dicomweb/studies/([0-9.]+)/series$ {
add_header 'Content-Encoding' 'gzip';
default_type application/json;
Expand All @@ -63,17 +68,37 @@ http {
try_files /dicomweb/studies/$1/series/$2/index.json.gz =204;
}

location ~ ^/dicomweb/studies/([0-9.]+)/series/([0-9.]+)/thumbnail$ {
default_type image/jpeg;
try_files /dicomweb/studies/$1/series/$2/thumbnail =204;
}

location ~ ^/dicomweb/studies/([0-9.]+)/series/([0-9.]+)/metadata$ {
add_header 'Content-Encoding' 'gzip';
default_type application/json;
try_files /dicomweb/studies/$1/series/$2/metadata.gz =204;
}

location ~ ^/dicomweb/studies/([0-9.]+)/series/([0-9.]+)/instances/([0-9.]+)/$ {
add_header 'Content-Encoding' 'gzip';
default_type multipart/related;
try_files /dicomweb/studies/$1/series/$2/instances/$3/frames/index /dicomweb/studies/$1/series/$2/instances/$3/index.mht.gz =404;
}

location ~ ^/dicomweb/studies/([0-9.]+)/series/([0-9.]+)/instances/([0-9.]+)/thumbnail$ {
default_type image/jpeg;
try_files /dicomweb/studies/$1/series/$2/instances/$3/thumbnail =204;
}

location ~ ^/dicomweb/studies/([0-9.]+)/series/([0-9.]+)/instances/([0-9.]+)/frames/([0-9]+)$ {
default_type multipart/related;
try_files /dicomweb/studies/$1/series/$2/instances/$3/frames/$4 =404;
try_files /dicomweb/studies/$1/series/$2/instances/$3/frames/$4 /dicomweb/studies/$1/series/$2/instances/$3/frames/$4.mht =404;
}

location ~ ^/dicomweb/studies/([0-9.]+)/series/([0-9.]+)/instances/([0-9.]+)/rendered/$ {
try_files /dicomweb/studies/$1/series/$2/instances/$3/rendered/index.mp4 =404;
}
}
}
```

```