Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/nginx.local.conf @ 264:6b98ac45aaee am-2
documented how to compile and execute WASM samples
author | am@osimis.io |
---|---|
date | Tue, 21 Aug 2018 16:36:01 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
262:77fdab5b5d6e | 264:6b98ac45aaee |
---|---|
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 } |