hyper4saken / ohif-orthanc-pacs

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:JavaScript 100.0%