Welcome to mirror list, hosted at ThFree Co, Russian Federation.

config.sample.php « config « server - github.com/nextcloud/lookup-server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 178518df64635500a3a68ec3c05659926f5e00a5 (plain)
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
<?php

// Lookup-Server Config

$CONFIG = [
	//DB
	'DB' => [
		'host' => 'localhost',
		'db' => 'lookup',
		'user' => 'lookup',
		'pass' => 'lookup',
	],

	// error verbose
	'ERROR_VERBOSE' => true,

	// logfile
	'LOG' => '/tmp/lookup.log',

	// replication logfile
	'REPLICATION_LOG' => '/tmp/lookup_replication.log',

	// max user search page. limit the maximum number of pages to avoid scraping.
	'MAX_SEARCH_PAGE' => 10,

	// max requests per IP and 10min.
	'MAX_REQUESTS' => 10000,

	// credential to read the replication log. IMPORTANT!! SET TO SOMETHING SECURE!!
	'REPLICATION_AUTH' => 'foobar',

	// credential to read the slave replication log. Replication slaves are read only and don't get the authkey. IMPORTANT!! SET TO SOMETHING SECURE!!
	'SLAVEREPLICATION_AUTH' => 'slavefoobar',

	// the list of remote replication servers that should be queried in the cronjob
	'REPLICATION_HOSTS' => [
		'https://lookup:slavefoobar@example.com/replication'
	],

	// ip black list. usefull to block spammers.
	'IP_BLACKLIST' => [
		'333.444.555.',
		'666.777.888.',
	],

	// spam black list. usefull to block spammers.
	'SPAM_BLACKLIST' => [
	],

	// Email sender address
	'EMAIL_SENDER' => 'admin@example.com',

	// Public Server Url
	'PUBLIC_URL' => 'http://dev/nextcloud/lookup-server',

    // twitter oauth credentials, needed to perform twitter verification
    'TWITTER_CONSUMER_KEY' => '',
    'TWITTER_CONSUMER_SECRET' => '',
    'TWITTER_ACCESS_TOKEN' => '',
    'TWITTER_ACCESS_TOKEN_SECRET' => '',
];