OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.1k stars 3.28k forks source link

How to connect OHIF Viewer with Orthanc server running on localhost:8042 while my OHIF Viewer is running on localhost:3000 #2546

Closed farooqbutt closed 11 months ago

jensen0914 commented 3 years ago

You need to update the app-config.js file that comes with the OHIF viewer to point to your Orthanac server's DICOMweb interface. See https://docs.ohif.org/configuring/

farooqbutt commented 3 years ago

I have done this but due to the CORS issue, I am not able to get the studies and series. so now how can I get the studies and series in OHIF Viwer? This is the issue.

farooqbutt commented 3 years ago

my Orthanc server is running at localhost:8042 and I have configured the OHIF viewer default.js file to get data from Orthanc server but I m facing a CORS issue.

biskyt commented 3 years ago

@farooqbutt - you need to use nginx to solve the CORS issue. There is a bunch of help on this in the OHIF and Orthanc documentation.

Here is an example docker-compose file that I'm using. That repo also contains the necessary nginx.conf file, and the ohif config js file. https://github.com/biskyt/OHIF_test/blob/master/docker-compose.yml

Basically, you tell OHIF to connect to the nginx endpoint, and nginx proxies the request through to orthanc. Hopefully that will help

maya-harel commented 2 years ago

Hey, I am also facing this issue. Using a docker-compose very similar to @biskyt I can see my files in the Orthanc web server, but they do not appear in the Ohif viewer How can I make sure my viewer is configured correctly?

juandp77 commented 2 years ago

@biskyt I´m getting stuck on the .env part of you docker-compose file. Any help?

sedghi commented 11 months ago

We have couple of deployment recipes, you can look at them https://docs.ohif.org/deployment/