Skip to content

Instantly share code, notes, and snippets.

@FMCalisto
Created April 4, 2018 20:18
Show Gist options
  • Select an option

  • Save FMCalisto/d0289adb718dd3db64e0e9b33b5c5817 to your computer and use it in GitHub Desktop.

Select an option

Save FMCalisto/d0289adb718dd3db64e0e9b33b5c5817 to your computer and use it in GitHub Desktop.
server {
listen 8048 default_server;
location / {
proxy_pass http://localhost:8148;
proxy_set_header HOST $host;
proxy_set_header X-Real-IP $remote_addr;
rewrite /orthanc(.*) $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' '*';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment