I am looking to add a function that enables doctors to write a report and attach it as a PDF to the study. I plan to add a button in Orthanc Explorer 2 (OE2) that opens report.html. I downloaded the OE2 “dist” directory to add the button and tried to load it using the serveFolder plugin, but it fails.
Here is my current configuration:
{
“ServeFolders”: {
“Extensions”: {
“.ico”: “image/png”
},
"Folders": {
"/oe": "/etc/orthanc/oe2/dist"
}
}
When I open domain/ui/app/index.html, it works perfectly.
However, when I try to open domain/oe/index.html, it gets stuck and shows the following errors [inspection mode]:
Initially, Nginx routes correctly and serverfolder enables the new route. However, it seems to have become stuck and I’m unsure of what might be causing the issue.
Any suggestions or ideas would be greatly appreciated.
Thank you.
It works now, but I want to share my experience with this issue.
NGINX Trailing Slash Issue: NGINX has a problem resolving variables with trailing slashes. For example, set $orthnc_explorer http://orthanc_01:8042/oe; doesn’t resolve correctly.
Proxy Pass Routing: NGINX was able to route proxy_pass for all blocks except for location /ui/api/. This route doesn’t go to NGINX to obtain the path. I had to manually fix it by replacing any instances of ../api with ..ui/api.