comparison Plugins/Samples/ServeFolders/README @ 1324:1609f71dc259

readme
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 13 Feb 2015 14:37:52 +0100
parents
children 9c2ffc4e938b
comparison
equal deleted inserted replaced
1323:5a92665dee23 1324:1609f71dc259
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:
30 https://code.google.com/p/orthanc/wiki/OrthancConfiguration
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 }