Hello! Here is my configuration to work with Weasis. Hope it works for you.
Weasis DICOM node:
Simplified nginx.conf file (dockerized NGINX, 2 load balanced Orthanc reader instances)
worker_processes auto;
events {
worker_connections 1024;
}
http {
resolver 127.0.0.11 ipv6=off;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
tcp_nopush on;
tcp_nodelay on;
types_hash_max_size 2048;
upstream readerOrthancsNightly {
least_conn;
server orthanc-reader-nightly-1;
server orthanc-reader-nightly-2;
}
server {
listen 80;
server_name localhost;
gzip on;
gzip_comp_level 5;
gzip_min_length 1000;
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml;
gzip_proxied no-cache no-store private expired auth;
client_max_body_size 50M;
location /orthanc-nightly-reader {
proxy_pass http://readerOrthancsNightly;
proxy_set_header HOST $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
rewrite /orthanc-nightly-reader(.*) $1 break;
add_header ‘Access-Control-Allow-Credentials’ ‘true’;
add_header ‘Access-Control-Allow-Headers’ ‘DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type’;
add_header ‘Access-Control-Allow-Methods’ ‘GET, POST, OPTIONS’;
add_header ‘Access-Control-Allow-Origin’ ‘*’;
proxy_read_timeout 600s;
proxy_connect_timeout 600s;
}
}
}
DicomWeb configuration:
“DicomWeb”: {
“Enable”: true, // Whether DICOMweb support is enabled
“Root”: “/dicom-web/”, // Root URI of the DICOMweb API (for QIDO-RS, STOW-RS and WADO-RS)
“EnableWado”: true, // Whether WADO-URI (previously known as WADO) support is enabled
“WadoRoot”: “/wado”, // Root URI of the WADO-URI (aka. WADO) API
“StudiesMetadata”: “MainDicomTags”,
“PublicRoot”: “/###PUBLIC_ROOT###/dicom-web/”,
“Ssl”: ###DICOM_WEB_SSL###,
“QidoCaseSensitive”: false // For QIDO-RS server, whether search is case sensitive (since release 0.5)
},
Since you are behind NGINX, I guess you will need PublicRoot set (see https://groups.google.com/g/orthanc-users/c/Z-GYyBiBHp4/m/85gKyDyvBAAJ). In my case, the “###???###” values are replaced at build time with Docker.
A segunda-feira, 27 de junho de 2022 à(s) 14:56:03 UTC+1, Ric Smi escreveu: