Mercurial > hg > orthanc-stone
comparison Applications/Samples/nginx.local.conf @ 295:b04b13810540 am-2
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
author | am@osimis.io |
---|---|
date | Tue, 04 Sep 2018 15:09:42 +0200 |
parents | Platforms/Wasm/nginx.local.conf@6b98ac45aaee |
children | ee41b6a017d7 |
comparison
equal
deleted
inserted
replaced
294:faccc4b07b92 | 295:b04b13810540 |
---|---|
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 } |