forked from mknexen/shaarli-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php.dist
65 lines (53 loc) · 1.57 KB
/
config.php.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Shaarli REST API
*
* @version 1.1
*
* @author: nexen
* mail: [email protected]
* irc: nexen irc.freenode.net #debian
*
* @contributors:
* ArthurHoaro (https://github.com/ArthurHoaro)
* Oros (https://github.com/Oros42/shaarli-river)
*/
/**
* Database configuration
*/
define('DB_TYPE', 'mysql'); /* sqlite or mysql */
define('DB_HOST', 'localhost'); // only for mysql
define('DB_NAME', 'shaarli-api'); // only for mysql
define('DB_USER', 'shaarli-api'); // only for mysql
define('DB_PASS', 'shaarli-api'); // only for mysql
// Favicon directory
define('FAVICON_DIRECTORY', __DIR__ . '/favicon/');
define('FAVICON_DEFAULT', 'default.ico');
// Reload favicon each month
define('FAVICON_CACHE_DURATION', 3600*24*30);
// Ne toucher à rien après cette ligne si vous ne savez pas se que vous faite =)
/**
* Sync configuration
*/
// Synchronisation de la liste des shaarlis avec d'autre shaarli-api ou export au format JSON
function shaarli_api_nodes() {
return array(
// Arthur Hoaro
'https://river.hoa.ro/api/feeds',
// Nexen
'https://nexen.netk.fr/shaarli-api/feeds',
// Oros (default disabled, already use OPML in shaarli_opml_files() )
// 'https://ecirtam.net/shaarli-api/feeds',
);
}
// Synchronisation de la liste des shaarlis avec des exports OPML
function shaarli_opml_files() {
return array(
// Oros OPML
'https://raw.githubusercontent.com/Oros42/shaarlis_list/master/shaarlis.opml',
// Ou
// 'https://ecirtam.net/find_shaarlis/out/shaarlis.opml',
// shaarli.fr OPML
'https://shaarlo.fr/opml.php?mod=opml',
);
}