root/trunk/jggtrans.xml

Revision 688, 6.5 kB (checked in by jajcus, 2 years ago)

- new GG server IP addresses

Line 
1 <jggtrans>
2
3   <!-- For this to work with jabberd 1.4.x, you should also update /etc/jabber/jabber.xml
4        Add the following (changed to your needs):
5   <browse>
6
7     ...
8
9     <item category="service" type="x-gadugadu" jid="gg.localhost" name="GaduGadu Transport">
10       <ns>jabber:iq:gateway</ns>
11       <ns>jabber:iq:register</ns>
12       <ns>jabber:iq:search</ns>
13       <ns>jabber:iq:agent</ns>
14       <ns>jabber:iq:browse</ns>
15     </item>
16
17     ...
18
19   </browse>
20
21
22   <service id="gglinker">
23     <host>gg.localhost</host>
24     <accept>
25       <ip>127.0.0.1</ip>
26       <port>5353</port>
27       <secret>secret</secret>
28     </accept>
29   </service>
30
31
32   For jabberd2 you don't need to (and should not) change anything in the server
33   configuration!
34   -->
35
36   <!-- this should match <service/> in <browse/> section of jabber.xml -->
37   <service jid="gg.localhost"/>
38
39   <!-- older transport versions used "/registered" resource in own jid, this
40        directive disables that behaviour (may break existing registered accounts). -->
41   <bare_domain/>
42
43   <!-- This connects the GG-transport process to the master process -->
44   <connect>
45     <ip>127.0.0.1</ip>
46     <port>5353</port> <!-- for jabberd 2.0 change to the router port (default: 5347) -->
47     <secret>secret</secret>
48   </connect>
49
50   <register>
51         <!-- This tag contains the message displayed to users at registration time. -->
52         <!-- You can use <p/> and/or <br/> to break lines. Multiple spaces and newlines
53              are converted to just one, so formatting of config file doesn't really matter -->
54         <instructions>
55                 Please enter your GG number (in the "username" field)
56                 and password to register with agent.
57                 <p/>To change your data in GaduGadu directory fill in the rest of fields.
58                 <p/>To unregister leave the form empty.
59                 <p/>By filling in this form you agree to sending this data to
60                 sms-express.com Sp. z o.o.
61                 <p/>On the server providing this transport only your GG password,
62                 jabberid and GG numbers of you and persons in your roster will
63                 be stored.
64         </instructions>
65   </register>
66
67  <search>
68         <!-- This tag contains the message displayed to users at search time. -->
69         <instructions>
70                 To search for people:<br/>
71                 Enter first/last name, nick, city, birth year or range (eg. 1950-1960)
72                 and gender (you may fill in one or more fields).<br/>
73                 or<br/>
74                 Enter phone number<br/>
75                 or<br/>
76                 Enter the GG number of the person you search for.
77         </instructions>
78  </search>
79
80  <gateway>
81         <!-- This is message, that may be displayed to user when adding gg contact. -->
82         <desc>
83                 Please enter GaduGadu number of person you would like to contact.
84         </desc>
85         <!-- And this is the prompt for GG number. -->
86         <prompt>
87                 GG Number
88         </prompt>
89  </gateway>
90
91  <!-- Contains the vCard of this transport. -->
92  <vCard>
93      <FN>GaduGadu Transport</FN>
94      <DESC>This is GaduGadu Transport</DESC>
95          <URL>http://jggtrans.jajcus.net/</URL>
96  </vCard>
97
98  <!-- Default user locale (language).
99       Empty means system locale setting,
100       no (or commented-out) <default_locale> tag means no translations. -->
101  <!-- <default_locale>pl_PL</default_locale> -->
102
103  <!-- Logger configuration.
104       You may configure one logger of type "syslog" and/or one of type "file".
105       You may also not configure logging at all. -->
106  <log type="syslog" facility="local0"/>
107  <log type="file">/tmp/ggtrans.log</log>
108
109  <!-- Uncomment this, if you want proxy to be used for GG connection -->
110  <!--
111  <proxy>
112         <ip>127.0.0.1</ip>
113         <port>8080</port>
114  </proxy>
115  -->
116
117  <!-- You can change this values according to your needs -->
118  <conn_timeout>60</conn_timeout>
119  <ping_interval>10</ping_interval>
120
121  <!-- GaduGadu server doesn't seem to answer pings any more :-(
122       So let's give it a year :-) -->
123  <pong_timeout>31536000</pong_timeout>
124
125  <!-- this time after disconnection from gg server the transport
126       will try to connect again -->
127  <reconnect>300</reconnect>
128
129  <!-- How long to wait before restart, after jabber server connection is broken
130       negative value means, that jggtrans should terminate -->
131       <restart_timeout>60</restart_timeout>
132
133  <!-- Delay between the unavailable presence is received from user and loggin out
134       from GG - for nice <presence type="invisible"/> support -->
135       <disconnect_delay>5</disconnect_delay>
136
137  <!-- list of gg servers to use.
138         <hub/> means "use GG hub to find server"
139         <server/> tag should contain server address and may contain "port"
140         attribute with port number. When TLS is available (supported by libgadu)
141         it will be used unless "tls" attribute is set to "no". Please notice,
142         that not all servers will accept TLS connections.
143         Servers (including hub) are tried in order as they appear in <servers/>
144         element.
145         A reasonable default server list is hardcoded in jggtrans.
146         TLS usually doesn't work right so it is not recommended to turn it on.
147       -->
148  <!--
149  <servers>
150         <hub tls="no"/>
151         <server tls="no">217.17.45.143</server>
152         <server tls="no">217.17.45.144</server>
153         <server tls="no">217.17.45.145</server>
154         <server tls="no">217.17.45.146</server>
155         <server tls="no">217.17.45.147</server>
156         <server tls="no">217.17.41.92</server>
157         <server tls="no">217.17.41.93</server>
158  </servers>
159  -->
160
161  <!-- Spool directory. This is the place, where user info will be stored. -->
162  <!-- Be careful about permissions - users' GG passwords are stored there -->
163  <spool>/var/lib/jabber/spool/gg.localhost/</spool>
164
165  <!-- Where to store pid file. This tag is optional. -->
166  <pidfile>/var/lib/jabber/ggtrans.pid</pidfile>
167
168  <!-- jid allowed to do some administrative task (eg. browsing online users).
169       May be used multiple times. -->
170  <admin>god@heaven.org</admin>
171
172  <!-- ACL gives detailed access control to the transport -->
173  <acl>
174         <!-- example entries: -->
175
176         <!-- <allow who="admin@mydomain" what="iq/query?xmlns=http://jabber.org/protocol/stats"/> -->
177                 <!-- will allow statistics gathering to admin@mydomain -->
178
179         <!-- <deny who="*" what="iq/query?xmlns=http://jabber.org/protocol/stats"/> -->
180                 <!-- will deny statistics gathering for anybody else -->
181
182         <!-- <allow who="*@mydomain"/> -->
183                 <!-- will allow anything else to users from "mydomain" -->
184
185         <!-- <deny what="iq/query?xmlns=jabber:x:register"/> -->
186                 <!-- will deny registration for all other users -->
187
188         <!-- <allow what="presence"/> -->
189                 <!-- allow presence from anybody -->
190
191         <!-- <allow what="iq"/> -->
192                 <!-- allow iq from anybody -->
193
194         <!-- <allow what="message"/> -->
195                 <!-- allow message from anybody -->
196
197         <!-- <deny/> -->
198                 <!-- will deny anything else -->
199  </acl>
200
201 </jggtrans>
202 <!--
203  vi: encoding=utf-8
204 -->
Note: See TracBrowser for help on using the browser.