comparison Applications/Samples/Deprecated/rt-viewer-demo/nginx.local.conf @ 1347:bfd77672d825 broker

Moved Application/Samples/* to Application/Samples/Deprecated/*
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 07 Apr 2020 14:29:01 +0200
parents Applications/Samples/rt-viewer-demo/nginx.local.conf@1d9deb4ee84c
children
comparison
equal deleted inserted replaced
1346:df8bf351c23f 1347:bfd77672d825
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 }