nginx reverse proxy stone orthanc viewer

I notice that if i use this option in my nginx configuration as suggested in orthanc book

rewrite /orthanc(.*) $1 break;

everything works fine except viewing properly orthanc logo in orthanc stone viewer

if i remove this line, using all the other lines, everything seems ok

server { listen 80 default_server; … location /orthanc/ { proxy_pass http://127.0.0.1:8042; proxy_set_header HOST $host; proxy_set_header X-Real-IP $remote_addr; 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’ ‘*’; } … }

many thanks,

Kyriakos

Hi,

That is weird. There’s nothing specific with the orthanc logo compared to other static resources.

FYI, I’ve created a sample docker setup and there’s no problem there: https://bitbucket.org/osimis/orthanc-setup-samples/src/master/docker/nginx/

Best regards,

Alain.