new json api changes
[OpenSRF.git] / 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         <!-- The section between <gateway>...</gateway> is a standard OpenSRF C stack config file -->
7         <gateway>
8
9                 <!--  the routers's name on the network -->
10                 <router_name>router</router_name>
11
12                 <!-- jabber domains to connect to (domain1, domain2, ...) -->
13                 <domains>
14                         <domain>127.0.0.1</domain>
15                 </domains>
16
17                 <!-- jabber login info -->
18                 <username>mylogin</username>
19                 <passwd>mypassword</passwd>
20
21                 <!-- If the port is a positive number,
22                         we will connect via TCP port, if not and unixpath is defined,
23                         we will connect via UNIX domain socket with the given path -->
24                 <port>5222</port>
25                 <unixpath>/openils/var/sock/jserver.sock</unixpath>
26         
27                 <!-- log file location -->
28                 <logfile>/openils/var/log/gateway.log</logfile>
29                 <!-- 0 None, 1 Error, 2 Warning, 3 Info, 4 debug -->
30                 <loglevel>3</loglevel>
31
32         </gateway>
33
34         <rest_gateway>
35                 <router_name>router</router_name>
36                 <domains>
37                         <domain>127.0.0.1</domain>
38                 </domains>
39                 <username>mylogin</username>
40                 <passwd>mypassword</passwd>
41                 <port>5222</port>
42                 <unixpath>/openils/var/sock/jserver.sock</unixpath>
43                 <logfile>/openils/var/log/gateway.log</logfile>
44                 <loglevel>3</loglevel>
45         </rest_gateway>
46
47         <!-- ======================================================================================== -->
48
49         <router>
50                 <component>0</component> <!-- leave disabled for now -->
51         
52                 <trusted_domains>
53                         <!-- Trusted servers are allowed to register apps with the router -->
54                         <server>127.0.0.1</server>
55                         <!-- Trusted clients are allowed to send packets through the router -->
56                         <client>127.0.0.1</client>
57                 </trusted_domains>
58         
59                 <transport>
60                         <!-- jabber server are we connecting to -->
61                         <server>127.0.0.1</server>
62                         <!-- If the port is a positive number,
63                                 we will connect via TCP port, if not and unixpath is defined,
64                                 we will connect via UNIX domain socket with the given path -->
65                         <port>5222</port>
66                         <unixpath>/openils/var/sock/unix_sock</unixpath>
67
68                         <!-- router's name on the network -->
69                         <username>router</username>
70                         <password>mypassword</password>
71                         <!-- router's jabber resource --> 
72                         <resource>router</resource>
73                         <connect_timeout>10</connect_timeout>
74                         <max_reconnect_attempts>5</max_reconnect_attempts>
75                 </transport>
76         
77                 <logfile>/openils/var/log/router.log</logfile>
78                 <loglevel>3</loglevel>
79         
80         </router>
81
82         <!-- ======================================================================================== -->
83
84 </config>
85
86
87
88