comparison Applications/Samples/rt-viewer-demo/nginx.local.conf @ 549:1d9deb4ee84c ct-pet-dose-struct

Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 02 Apr 2019 15:08:31 +0200
parents
children
comparison
equal deleted inserted replaced
548:d10a295b607a 549:1d9deb4ee84c
1 # Local config to serve the WASM samples static files and reverse proxy Orthanc.
2 # Uses port 9977 instead of 80.
3
4 # `events` section is mandatory
5 events {
6 worker_connections 1024; # Default: 1024
7 }
8
9 http {
10
11 # prevent nginx sync issues on OSX
12 proxy_buffering off;
13
14 server {
15 listen 9977 default_server;
16 client_max_body_size 4G;
17
18 # location may have to be adjusted depending on your OS and nginx install
19 include /etc/nginx/mime.types;
20 # if not in your system mime.types, add this line to support WASM:
21 # types {
22 # application/wasm wasm;
23 # }
24
25 # serve WASM static files
26 root build-web/;
27 location / {
28 }
29
30 # reverse proxy orthanc
31 location /orthanc/ {
32 rewrite /orthanc(.*) $1 break;
33 proxy_pass http://127.0.0.1:8042;
34 proxy_set_header Host $http_host;
35 proxy_set_header my-auth-header good-token;
36 proxy_request_buffering off;
37 proxy_max_temp_file_size 0;
38 client_max_body_size 0;
39 }
40
41
42 }
43
44 }