Mercurial > hg > orthanc
annotate Plugins/Samples/ServeFolders/README @ 1914:501769757bf9
flag to remove network support in dcmtk, removal of unneeded sources in static builds
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Feb 2016 11:47:02 +0100 |
parents | 9c2ffc4e938b |
children | 13a9f265d5d3 |
rev | line source |
---|---|
1324 | 1 Introduction |
2 ============ | |
3 | |
4 This sample plugin enables Orthanc to serve additional folders using | |
5 its embedded Web server. | |
6 | |
7 | |
8 Compilation for Linux | |
9 ===================== | |
10 | |
11 # mkdir Build | |
12 # cd Build | |
13 # cmake .. | |
14 # make | |
15 | |
16 | |
17 Cross-compilation for Windows using MinGW | |
18 ========================================= | |
19 | |
20 # mkdir Build | |
21 # cd Build | |
22 # cmake .. -DCMAKE_TOOLCHAIN_FILE=../../../Resources/MinGWToolchain.cmake | |
23 # make | |
24 | |
25 | |
26 Configuration | |
27 ============= | |
28 | |
29 First, generate the default configuration of Orthanc: | |
1808
9c2ffc4e938b
configuration of the sample modality worklists plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1324
diff
changeset
|
30 https://orthanc.chu.ulg.ac.be/book/users/configuration.html |
1324 | 31 |
32 Then, modify the "Plugins" option to point to the folder containing | |
33 the built plugins. | |
34 | |
35 Finally, create a section "ServeFolders" in the configuration file to | |
36 specify which folder you want to serve, and at which URI. For | |
37 instance, the following excerpt would load the plugins from the | |
38 working directory, then would branch the content of the folder | |
39 "/home/jodogne/WWW/fosdem" as the URI "http://localhost:8042/fosdem": | |
40 | |
41 { | |
42 "Name" : "MyOrthanc", | |
43 [...] | |
44 "HttpPort" : 8042, | |
45 [...] | |
46 "Plugins" : [ | |
47 "." | |
48 ], | |
49 "ServeFolders" : { | |
50 "/fosdem" : "/home/jodogne/WWW/fosdem" | |
51 } | |
52 } |