]> git.evergreen-ils.org Git - Evergreen.git/blob - OpenSRF/examples/opensrf_core.xml.example
added section for chopchop since it now reads xml config instead of command line
[Evergreen.git] / OpenSRF / examples / opensrf_core.xml.example
1 <?xml version='1.0'?>
2
3 <!-- Bootstrap config file for the C opensrf_stack library -->
4 <config>
5
6
7         <chopchop> <!-- Our jabber server -->
8                 <domain>127.0.0.1</domain>
9                 <secret>secret</secret>
10                 <port>5222</port>
11                 <s2sport>5269</s2sport>
12                 <listen_address>10.0.0.3</listen_address>
13                 <loglevel>3</loglevel>
14                 <logfile>/openils/var/log/jabber.log</logfile>
15         </chopchop>
16
17
18         <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
19         <gateway>
20
21                 <!--  the routers's name on the network -->
22                 <router_name>router</router_name>
23
24                 <!-- jabber domains to connect to (domain1, domain2, ...) -->
25                 <domains>
26                         <domain>127.0.0.1</domain>
27                 </domains>
28
29                 <!-- jabber login info -->
30                 <username>mylogin</username>
31                 <passwd>mypassword</passwd>
32
33                 <!-- If the port is a positive number,
34                         we will connect via TCP port, if not and unixpath is defined,
35                         we will connect via UNIX domain socket with the given path -->
36                 <port>5222</port>
37                 <unixpath>/openils/var/sock/jserver.sock</unixpath>
38         
39                 <!-- log file location -->
40                 <logfile>/openils/var/log/gateway.log</logfile>
41                 <!-- 0 None, 1 Error, 2 Warning, 3 Info, 4 debug -->
42                 <loglevel>3</loglevel>
43
44         </gateway>
45
46         <rest_gateway>
47                 <router_name>router</router_name>
48                 <domains>
49                         <domain>127.0.0.1</domain>
50                 </domains>
51                 <username>mylogin</username>
52                 <passwd>mypassword</passwd>
53                 <port>5222</port>
54                 <unixpath>/openils/var/sock/jserver.sock</unixpath>
55                 <logfile>/openils/var/log/gateway.log</logfile>
56                 <loglevel>3</loglevel>
57         </rest_gateway>
58
59         <!-- ======================================================================================== -->
60
61         <router>
62                 <component>0</component> <!-- leave disabled for now -->
63         
64                 <trusted_domains>
65                         <!-- Trusted servers are allowed to register apps with the router -->
66                         <server>127.0.0.1</server>
67                         <!-- Trusted clients are allowed to send packets through the router -->
68                         <client>127.0.0.1</client>
69                 </trusted_domains>
70         
71                 <transport>
72                         <!-- jabber server are we connecting to -->
73                         <server>127.0.0.1</server>
74                         <!-- If the port is a positive number,
75                                 we will connect via TCP port, if not and unixpath is defined,
76                                 we will connect via UNIX domain socket with the given path -->
77                         <port>5222</port>
78                         <unixpath>/openils/var/sock/unix_sock</unixpath>
79
80                         <!-- router's name on the network -->
81                         <username>router</username>
82                         <password>mypassword</password>
83                         <!-- router's jabber resource --> 
84                         <resource>router</resource>
85                         <connect_timeout>10</connect_timeout>
86                         <max_reconnect_attempts>5</max_reconnect_attempts>
87                 </transport>
88         
89                 <logfile>/openils/var/log/router.log</logfile>
90                 <loglevel>3</loglevel>
91         
92         </router>
93
94         <!-- ======================================================================================== -->
95
96 </config>
97
98
99
100