Commit | Line | Data |
---|---|---|
dba46c5c | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
ba6ae046 | 2 | ; Copyright (C) 2003-2013 Polytechnique.org ; |
dba46c5c FB |
3 | ; http://opensource.polytechnique.org/ ; |
4 | ; ; | |
5 | ; This program is free software; you can redistribute it and/or modify ; | |
6 | ; it under the terms of the GNU General Public License as published by ; | |
7 | ; the Free Software Foundation; either version 2 of the License, or ; | |
8 | ; (at your option) any later version. ; | |
9 | ; ; | |
10 | ; This program is distributed in the hope that it will be useful, ; | |
11 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; | |
12 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; | |
13 | ; GNU General Public License for more details. ; | |
14 | ; ; | |
15 | ; You should have received a copy of the GNU General Public License ; | |
16 | ; along with this program; if not, write to the Free Software ; | |
17 | ; Foundation, Inc., ; | |
18 | ; 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ; | |
19 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
20 | ||
21 | ; DO NOT EDIT THIS FILE | |
22 | ; This file contains the default values for the configuration variables of | |
23 | ; plat/al. This values can be overriden in by adding a platal.conf file in | |
24 | ; the same directory. | |
25 | ; DO NOT EDIT THIS FILE | |
26 | ||
27 | ||
28 | ; The core section contains the main configuration of the website like name | |
29 | ; of the site, its URL, or the database parameters. It also provide tools | |
30 | ; to setup debugging or restrictions on the website. | |
ea6398d1 | 31 | [Core] |
dba46c5c FB |
32 | |
33 | ; $globals->locale | |
34 | ; Locale of the web site. This includes language and charset to | |
35 | ; use for system strings. | |
3a824ce3 | 36 | locale = "fr_FR.UTF-8" |
dba46c5c FB |
37 | |
38 | ; $globals->timezone | |
39 | ; The timezone of the server. | |
949741c3 | 40 | timezone = "Europe/Paris" |
dba46c5c FB |
41 | |
42 | ; $globals->core->restricted_platal | |
43 | ; When activated restricted_platal, the copy of the website is protected against | |
44 | ; indexation by search engine. This also activate the addition of catch-all emails | |
45 | ; by PlMailer. (see email_catchall and robotstxt_disallowed_uris for more details). | |
46 | ; | |
47 | ; A production website should set this variable to true in platal.conf | |
91f3d206 | 48 | restricted_platal = 1 |
dba46c5c FB |
49 | |
50 | ; $globals->core->robotstxt_disallowed_uris | |
51 | ; List of urls that must not be indexed by search engines when the site is not | |
52 | ; in restricted mode. The urls must be separated by spaces or commas. | |
53 | ; | |
54 | ; e.g: robotstxt_disallowed_uris = "/javascript /images /Xorg" | |
91f3d206 | 55 | robotstxt_disallowed_uris = |
ea6398d1 | 56 | |
dba46c5c FB |
57 | ; $globals->email_catchall |
58 | ; An email address that signal a mail to be discarded by the mail routing | |
59 | ; environment. | |
60 | ; | |
61 | ; email_catchall = "" | |
62 | ||
63 | ; $globals->cookie_ns | |
64 | ; String to preprend to the name of the cookies generated by the site | |
65 | ; | |
66 | ; cookie_ns = "" | |
67 | ||
68 | ; $globals->cookie_path | |
69 | ; The path the cookies generated by the site are associated to. | |
70 | ; | |
71 | ; cookie_path = "" | |
72 | ||
73 | ; $globals->debug | |
74 | ; Debug flags. The flags are integer mask and the debug value is a combination | |
75 | ; of this flags. Available values are: | |
76 | ; - provided by the core: | |
77 | ; 1 - DEBUG_BT: displays the backtraces (SQL, mailman, banana executions) | |
78 | ; 2 - DEBUG_VALID: checks that the html of the page is valid | |
79 | ; 4 - DEBUG_SMARTY: don't hide error reported during the execution of smarty | |
5a217f73 FB |
80 | ; 8 - DEBUG_NOCACHE: disable data caching |
81 | ; 16 - DEBUG_SCRIPTCACHE: cache expires after the execution of the script (no caching | |
82 | ; in session or via memcache) | |
dba46c5c | 83 | ; - provided by xorg: |
5a217f73 FB |
84 | ; 256 - DEBUG_NOCACHE: don't cache db content in the session (this feature as been moved |
85 | ; to the core and this flag is deprecated) | |
dba46c5c FB |
86 | ; |
87 | ; debug = 0 | |
88 | ||
89 | ; $globals->mode | |
90 | ; Plat/al execution mode: | |
91 | ; empty -> this copy of plat/al is disabled | |
92 | ; 'r' -> read only, writing in the database is not allowed (excepting logging) | |
93 | ; 'rw' -> read-write, the site is fully available | |
94 | ; | |
95 | ; mode = "rw" | |
96 | ||
97 | ; $globals->core->secure_domain | |
98 | ; If not empty, the site automatically redirects the user to the secure_domain. | |
99 | ; The value must be a hostname (eg.: www.polytechnique.org) | |
100 | secure_domain = "" | |
101 | ||
102 | ; $globals->baseurl | |
103 | ; The base url of the web site. This value is used only for scripts called from | |
104 | ; command line. The value is computed automatically when php serves a web page. | |
105 | baseurl = "https://www.example.org/" | |
106 | ||
b4b826ea SJ |
107 | ; The base url of the url shortener. |
108 | baseurl_shortener = "" | |
109 | ||
dba46c5c FB |
110 | ; $globals->sitename |
111 | ; The name of the site | |
112 | ; | |
113 | ; sitename = "" | |
114 | ||
115 | ; $globals->dbhost | |
116 | ; Host where the db is located | |
117 | ; dbhost = "localhost" | |
118 | ||
119 | ; $globals->dbuser | |
120 | ; Username to use to connect to the database | |
121 | ; dbuser = "web" | |
122 | ||
123 | ; $globals->dbpwd | |
124 | ; Password to use to connect to the database | |
125 | ; dbpwd = "" | |
126 | ||
127 | ; $globals->dbdb | |
128 | ; Name of the database | |
129 | ; dbdb = "x4dat" | |
130 | ||
131 | ; $globals->dbcharset | |
132 | ; The charset to use when talking to the database | |
133 | ; dbcharset = "utf8" | |
134 | ||
5a217f73 FB |
135 | ; $globals->core->memcache |
136 | ; List of space separated addresses of memcache servers | |
137 | memcache = "" | |
138 | ||
dba46c5c FB |
139 | ; $globals->static_cache_duration |
140 | ; Cache duration for static content | |
141 | ; static_cache_duration = "604800" | |
142 | ||
143 | ; $globals->dynamic_cache_duration | |
144 | ; Cache duration for dynamic content | |
145 | ; dynamic_cache_duration = "3600" | |
146 | ||
147 | ; $globals->skin | |
148 | ; Skin to use for unlogged accesses and when the user didn't explicitely | |
149 | ; select a skin. | |
25962601 | 150 | skin = "default" |
dba46c5c | 151 | |
dba46c5c FB |
152 | ; $globals->core->econfiance |
153 | ; Key used to perform transactions with the 'econfiance' webservice in order | |
154 | ; to synchronize the X-Informatique directory with polytechnique.net | |
155 | econfiance = "" | |
156 | ||
157 | ||
ff949e76 RB |
158 | ; $globals->core->sentry_dsn |
159 | ; Key used to log errors to Sentry | |
160 | sentry_dsn = "" | |
161 | ||
e42b6614 RB |
162 | ; $globals->core->sentry_js_dsn |
163 | ; Key used to log JS errors to Sentry | |
164 | sentry_js_dsn = "" | |
165 | ||
ff949e76 | 166 | |
8ebd6f86 VZ |
167 | ; The API section contains the configuration for the web services. |
168 | [Api] | |
169 | ||
170 | ; $globals->api->hmac_algo | |
171 | ; Algorithm to use for HMAC-based authentication of API requests. Note that this | |
172 | ; value is shared with clients, and must be changed in all places at once. | |
173 | hmac_algo = "sha256" | |
174 | ||
175 | ; $globals->api->timestamp_tolerance | |
176 | ; Maximum number of seconds of drift allowed between the client-side UNIX clock | |
177 | ; and the server-side clock. This should be big enough to also allow for network | |
178 | ; latency, but not too high, to limit replay opportunities. | |
179 | timestamp_tolerance = 10 | |
180 | ||
181 | ||
dba46c5c | 182 | ; The banana section contains the configuration of the forums. |
79a28dc9 | 183 | [Banana] |
dba46c5c FB |
184 | |
185 | ; $globals->banana->server | |
186 | ; Hostname of the nntp server | |
79a28dc9 | 187 | server = "localhost" |
dba46c5c FB |
188 | |
189 | ; $globals->banana->port | |
190 | ; Port of the nntp server (if port is 563, banana automatically switch | |
191 | ; to nntps) | |
79a28dc9 | 192 | port = 119 |
193 | ||
dba46c5c FB |
194 | ; $globals->banana->password |
195 | ; Password used by banana to authenticate site users with the nntp server. | |
79a28dc9 | 196 | password = "***" |
dba46c5c FB |
197 | |
198 | ; $globals->banana->web_user | |
199 | ; Username used by banana | |
79a28dc9 | 200 | web_user = "***" |
dba46c5c FB |
201 | |
202 | ; $globals->banana->web_pass | |
203 | ; Password used by banana to perform administrative tasks unrelated to a | |
204 | ; specific user | |
79a28dc9 | 205 | web_pass = "***" |
206 | ||
dba46c5c FB |
207 | ; $globals->banana->event_forum |
208 | ; Name of the newsgroup where events are posted | |
b2bffbe6 | 209 | event_forum = "" |
dba46c5c FB |
210 | |
211 | ; $globals->banana->event_reply | |
212 | ; Name of a newsgroup where to reply to posted events | |
b2bffbe6 | 213 | event_reply = "" |
214 | ||
dba46c5c | 215 | |
080632c7 RB |
216 | ; The deltaten section contains parameters used to handle the "N N-10" |
217 | ; operation. | |
218 | [Deltaten] | |
219 | ||
220 | ; $globals->deltaten->first_promo_young | |
221 | ; First promo to take part to the "N N-10" operation as the "young" promo | |
222 | first_promo_young = 2007 | |
223 | ||
224 | ||
dba46c5c FB |
225 | ; The geocoder section contains parameters used to perform the geocoding |
226 | ; and the formatting of user addresses. | |
4c906759 | 227 | [Geocoder] |
dba46c5c FB |
228 | |
229 | ; $globals->geocder->email | |
230 | ; Unused parameter. | |
4c906759 | 231 | email = "" |
dba46c5c | 232 | |
dba46c5c FB |
233 | ; $globals->geocoder->gmaps_url |
234 | ; URL of geocoding webservice | |
0f5f1b70 | 235 | gmaps_url = "https://maps.googleapis.com/maps/api/geocode/" |
138b3c8e | 236 | |
0f5f1b70 | 237 | ; $globals->geocoder->gmaps_language |
ce3e0af3 | 238 | ; Default output language. |
0f5f1b70 | 239 | gmaps_language = "fr" |
ce3e0af3 | 240 | |
0f5f1b70 | 241 | ; $globals->geocoder->gmaps_region |
ce3e0af3 | 242 | ; Default location preference. |
0f5f1b70 | 243 | gmaps_region = "fr" |
dba46c5c | 244 | |
559cef11 SJ |
245 | ; The maps section contains parameters used to display maps. |
246 | [Maps] | |
247 | ||
248 | ; $globals->maps->static_map | |
249 | ; URL of Google Maps api for static maps | |
250 | static_map = "https://maps.googleapis.com/maps/api/staticmap" | |
251 | ||
252 | ; $globals->maps->dynamic_map | |
253 | ; URL of Google Maps api for dynamic maps | |
254 | dynamic_map = "https://maps-api-ssl.google.com/maps/api/js" | |
255 | ||
256 | ; $globals->maps->api_version | |
257 | ; Current Google Maps API version | |
258 | api_version = "" | |
259 | ||
260 | ; $globals->maps->language | |
261 | ; Language to be used in maps. | |
262 | language = "" | |
8ebd6f86 | 263 | |
dba46c5c | 264 | ; The lists section contains parameters used to interact with mailman. |
79a28dc9 | 265 | [Lists] |
dba46c5c FB |
266 | |
267 | ; $globals->lists->rpchost | |
268 | ; Hostname where the lists' rpc server is located | |
79a28dc9 | 269 | rpchost = "localhost" |
dba46c5c FB |
270 | |
271 | ; $globasl->lists->rpcport | |
272 | ; Port of the lists' rpc server | |
1fec3393 | 273 | rpcport = "4949" |
79a28dc9 | 274 | |
dba46c5c FB |
275 | ; $globals->lists->spool |
276 | ; Path to the archives of mailman. This is used to provide access to the archives | |
277 | ; via the web interface | |
fa7d6c7b | 278 | spool = "/var/lib/mailman/archives/private" |
dba46c5c FB |
279 | |
280 | ; $globals->lists->vhost_sep | |
281 | ; Character used to separate the host part and the list name part in the internal | |
282 | ; name of the list in mailman. If vhost_sep is '_', the list blah@example.com will | |
283 | ; be internally named example.com_blah | |
79a28dc9 | 284 | vhost_sep = "_" |
285 | ||
dba46c5c FB |
286 | ; $globals->lists->max_mail_per_min |
287 | ; Maximum number of mails an instance of the moderation cron accepts to deliver. | |
834fd0f6 | 288 | max_mail_per_min = 400 |
289 | ||
85ddf64f SJ |
290 | ; $globals->lists->redirect_domain |
291 | ; Domain where mailing list emails are redirected. | |
292 | redirect_domain = "" | |
293 | ||
dba46c5c FB |
294 | |
295 | ; The mail section contains parameters used to interacts with email routing | |
fb31ee6b | 296 | [Mail] |
dba46c5c FB |
297 | |
298 | ; $globals->mail->domain | |
299 | ; Main mail domain | |
fb31ee6b | 300 | domain = "" |
dba46c5c FB |
301 | |
302 | ; $globals->mail->domain2 | |
303 | ; Secondary mail domain providing aliases to the main domain. | |
fb31ee6b VZ |
304 | domain2 = "" |
305 | ||
dba46c5c FB |
306 | ; $globals->mail->alias_dom |
307 | ; Mail domain hosting user-choosen aliases. | |
fb31ee6b | 308 | alias_dom = "" |
dba46c5c FB |
309 | |
310 | ; $globals->mail->alias_dom2 | |
311 | ; Secondary domain for user-choosen aliases. | |
fb31ee6b VZ |
312 | alias_dom2 = "" |
313 | ||
9e2a6a32 SJ |
314 | blacklist_check_url = "" |
315 | blacklist_host_resolution_limit = | |
dba46c5c FB |
316 | |
317 | ; $globals->mail->domain_whitelist | |
318 | ; Space-separated list of domains to be accepted in urls in the newsletter even if this | |
319 | ; domain is blacklisted by a spam filter. | |
955109ba | 320 | domain_whitelist = "" |
9e2a6a32 | 321 | |
3b346b99 SJ |
322 | ; $globals->mail->antispam |
323 | ; Default antispam level. | |
324 | antispam = "" | |
dba46c5c FB |
325 | |
326 | ; The mailstorage section contains parameters describing the availability of email storage services | |
fb31ee6b | 327 | [MailStorage] |
dba46c5c FB |
328 | |
329 | ; $globals->mailstorage->imap_active | |
330 | ; Boolean flag triggering the activation of the administration interface for the imap storage service. | |
fb31ee6b | 331 | imap_active = 0 |
dba46c5c FB |
332 | |
333 | ; $globals->mailstorage->googleapps_active | |
334 | ; Boolean flag triggering the activation of the administration interface for the googleapps service. | |
fb31ee6b | 335 | googleapps_active = 0 |
dba46c5c FB |
336 | |
337 | ; $globals->mailstorage->googleapps_domain | |
338 | ; Domain used internally when redirecting an email to the googleapps account of a user. | |
bb0727ea | 339 | googleapps_domain = "" |
79a28dc9 | 340 | |
dba46c5c FB |
341 | |
342 | ; The manageurs section contains parameters for the webservice providing data to manageurs.com | |
e1ccc9fa | 343 | [Manageurs] |
dba46c5c FB |
344 | |
345 | ; $globals->manageurs->authorized_ips | |
346 | ; Space-separated list of IP that are allowed on the webservice | |
e1ccc9fa | 347 | authorized_ips = "129.104.30.32 129.104.30.33 213.251.145.200" |
dba46c5c FB |
348 | |
349 | ; $globals->manageurs->manageurs_cipher_key | |
350 | ; Key used to cipher data sent to manageurs.com | |
e1ccc9fa | 351 | manageurs_cipher_key = "" |
dba46c5c FB |
352 | |
353 | ; $globals->manageurs->manageurs_pass | |
354 | ; Password to be provided by manageurs.com to get authenticated on the webservice | |
e1ccc9fa | 355 | manageurs_pass = "" |
356 | ||
357 | ||
dba46c5c | 358 | ; The money section contains parameters for the payment module |
07126863 | 359 | [Money] |
dba46c5c FB |
360 | |
361 | ; $globals->money->email | |
362 | ; Email address to which payment related actions are reported | |
363 | ; | |
364 | ; email = "" | |
365 | ||
366 | ; Undocumented parameter | |
07126863 | 367 | mpay_def_id = 0 |
dba46c5c FB |
368 | |
369 | ; Undocumented parameter | |
07126863 | 370 | mpay_def_meth = 0 |
dba46c5c FB |
371 | |
372 | ; $globals->money->paypal_site | |
373 | ; Hostname of the Paypal site | |
07126863 | 374 | paypal_site = "" |
dba46c5c FB |
375 | |
376 | ; $globals->money->paypal_compte | |
377 | ; Account on Paypal | |
07126863 | 378 | paypal_compte = "" |
379 | ||
dba46c5c FB |
380 | ; $globals->money->cyberplus_key |
381 | ; API key to use when accessing the CyberPlus payment service | |
382 | ; | |
383 | ; cyperplus_key = "" | |
07126863 | 384 | |
79a28dc9 | 385 | |
dba46c5c FB |
386 | ; The poison section contains parameters for injecting poisonous email on the internet |
387 | [Poison] | |
79a28dc9 | 388 | |
dba46c5c FB |
389 | ; $globals->poison->file |
390 | ; Path to a file containing one poisonous email per line | |
391 | file = "" | |
392 | ||
393 | ||
394 | ; The search section contains parameters for the search module | |
79a28dc9 | 395 | [Search] |
dba46c5c FB |
396 | |
397 | ; $globals->search->public_max | |
398 | ; Maximum number of profiles a search on the public site is allowed to return. | |
79a28dc9 | 399 | public_max = 25 |
dba46c5c FB |
400 | |
401 | ; $globals->search->private_max | |
402 | ; Maximum number of profiles a search on the private site is allowed to return | |
79a28dc9 | 403 | private_max = 800 |
dba46c5c FB |
404 | |
405 | ; $globals->search->per_page | |
406 | ; Maximum number of profiles per page in the result of a search | |
79a28dc9 | 407 | per_page = 20 |
408 | ||
dba46c5c | 409 | |
f0f8c375 RB |
410 | ; The SharingAPI section contains parameters about the 'sharing' webservice |
411 | [SharingAPI] | |
412 | ||
413 | ; $globals->sharingapi->max_result_per_query | |
414 | ; Maximum number of results returned in an API response. | |
415 | max_result_per_query = 10; | |
416 | ||
417 | ||
dba46c5c | 418 | ; The register section contains parameters for the registration process |
9812efa0 | 419 | [Register] |
dba46c5c FB |
420 | |
421 | ; $globals->register->notif | |
422 | ; Email address to be notified on new registrations. | |
9812efa0 | 423 | notif = "" |
79a28dc9 | 424 | |
dba46c5c FB |
425 | |
426 | ; The webservice section contains parameters used to access external webservices | |
427 | [WebService] | |
428 | ||
429 | ; $globals->webservice->pass | |
430 | ; Pass to access the webservice of manageurs.com | |
431 | pass = "" | |
432 | ||
433 | ; $globals->webservice->pass_ax | |
434 | ; Passphrase to use to access the webservice of the AX | |
435 | pass_ax = "" | |
436 | ||
437 | ; $globals->webservice->hsot_ax | |
438 | ; Host of the webservice of the AX | |
439 | host_ax = "https://www.polytechniciens.com/" | |
440 | ||
441 | ; $globals->webservice->private_key_ax | |
442 | ; Path to the private key used for authentication with the webservice of the AX | |
443 | private_key_ax = "" | |
444 | ||
445 | ||
446 | ; The xnet section contains parameters for Polytechnique.net | |
79a28dc9 | 447 | [Xnet] |
dba46c5c FB |
448 | |
449 | ; $globals->xnet->secret | |
450 | ; Authentication key to use to authenticate users with Polytechnique.org | |
7a05c64d | 451 | secret = "" |
dba46c5c FB |
452 | |
453 | ; $globals->xnet->auth_baseurl | |
6cce7840 | 454 | ; Baseurl of the site used to perform authentication |
7a05c64d | 455 | auth_baseurl = "" |
dba46c5c | 456 | |
a88f005d RB |
457 | ; $globals->xnet->xorg_baseurl |
458 | ; Baseurl of the 'X.org' website | |
459 | xorg_baseurl = "https://www.polytechnique.org/" | |
460 | ||
dba46c5c FB |
461 | ; $globals->xnet->evts_domain |
462 | ; Domain address where the aliases containing the list of (non-)subscribers | |
463 | ; of an event are created. | |
464 | evts_domain = "" | |
09b461ce | 465 | |
7852229b SJ |
466 | ; $globals->xnet->participant_list |
467 | ; Mailing list suffix used to contact event participants. | |
468 | participant_list = "" | |
469 | ||
470 | ; $globals->xnet->absent_list | |
471 | ; Mailing list suffix used to contact users who notified they won't attend to the event. | |
472 | absent_list = "" | |
473 | ||
474 | ; $globals->xnet->unpayed_list | |
475 | ; Mailing list suffix used to contact event participants who did not pay. | |
476 | unpayed_list = "" | |
477 | ||
478 | ; $globals->xnet->payed_list | |
479 | ; Mailing list suffix used to contact event participants who paid. | |
480 | payed_list = "" | |
481 | ||
482 | ; $globals->xnet-> | |
483 | ; Event mailing lists suffixes. It must contain the 4 suffixes above, separated by a coma. | |
484 | event_lists = "" | |
485 | ||
486 | ||
09b461ce SJ |
487 | ; The merge section contains parameters about the merge's state. |
488 | [Merge] | |
489 | ||
490 | ; $globals->merge->state | |
491 | ; Pending before the merge, done afterwards. | |
492 | state = "pending" |