Skip to content

Ohif V3 & Orthanc (Postgresdb ) with Authentik and Nignx Proxy Manager

Notifications You must be signed in to change notification settings

hyper4saken/ohif-orthanc-pacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M A P D R (Hyper4Saken) 🤘

MAPDR

OHIF v3 with Orthanc(PostgresDB) with Authentik for Auth and Nginx Proxy Manager for Proxy

Intro:

🩻 Ohif v3: (OHIF) Viewer is an open source, web-based, medical imaging platform.

📀 Orthanc: Its free and open-source, lightweight DICOM server for medical imaging.

🐘 PostgreSQL: It is a powerful open-source relational database management system known for its reliability, extensibility, and advanced features.

🔐 Authentik: It is an open-source authentication and authorization server that provides secure access control and identity management for web applications.

🌐 Nginx Proxy Manager: It is a simple yet powerful web-based tool for managing Nginx proxy servers, enabling easy configuration and management of reverse proxies and SSL/TLS termination.


🤔 Want to know how it looks like. Here is the Demo Video

DEMO VIDEO

Create new docker network proxy

docker network create proxy

Clone This Repo

git clone https://github.com/hyper4saken/ohif-orthanc.git
cd ohif-orthanc-pacs

File Structure

├── authentik
│   ├── certs
│   ├── custom-templates
│   ├── database
│   ├── media
│   │   └── public
│   │       ├── favicon.svg
│   │       ├── flow-backgrounds
│   │       │   └── star-wars-poster-4k-af-1920x1080.jpg
│   │       └── logo.png
│   └── redis
├── docker-compose.yml
├── ohif
│   ├── config
│   │   ├── logo.png
│   │   └── ohif.js
│   └── nginx
│       ├── default-ohif-nginx.conf
│       └── ohif-nginx.conf
├── orthanc
│   ├── config
│   │   ├── orthanc.json
│   │   └── postgresql.json
│   ├── database
│   └── dicomImages
├── proxy
└── README.md

Set .env variable for Authentik

echo "PG_PASS=$(openssl rand 36 | base64)" >> .env
echo "AUTHENTIK_SECRET_KEY=$(openssl rand 60 | base64)" >> .env

Set Orthanc UserName & Password

Use you favourite text editor

nvim ./orthanc/config/orthanc.json
   "AuthenticationEnabled": true,
  "RegisteredUsers": {
    "hyper": "mapdr"
  },

Create generate the base64-encoded string

echo -n 'hyper:mapdr' | base64.
aHlwZXI6bWFwZHI=

Update Nginx config for Ohif to pass http auth for accessing Orthanc

Edit Nginx reverse proxy

nvim ./ohif/nginx/ohif.conf

and paste base64-encoded user name and password

proxy_set_header Authorization "Basic aHlwZXI6bWFwZHI=";  # Replace with base64-encoded credentials

Whenever you access OHIF it won't ask for Orthanc auth and password.

Spin up containers

docker-compose up -d