-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.sample.php
149 lines (122 loc) · 3.97 KB
/
config.sample.php
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
/**
* Version Number
* (mostly used for refreshing cached resources of previous version)
* Example: "1.5"
* String
*/
$config["version"] = "";
/**
* The URI to your Open Parliament TV instance
* Example: https://de.openparliament.tv
*/
$config["dir"]["root"] = "";
/**
* Display NER results in UI
* true or false
*/
$config["display"]["ner"] = true;
/**
* Speeches per page
* Number
*/
$config["display"]["speechesPerPage"] = 40;
/**
* Allow user to register
* true or false
*/
$config["allow"]["register"] = true;
/**
* Allow registered user to login
* true or false
*/
$config["allow"]["login"] = true;
/**
* Allow public access to all none administrative data and functions
* true or false
*/
$config["allow"]["publicAccess"] = true;
/**
* A complicated string to salt the user account password hashes
*/
$config["salt"] = "";
/**
* Available languages of the platform (translation files can be found at /lang/*.json
*/
$acceptLang = array(
"de"=>array(
"short"=>"de",
"name"=>"Deutsch",
"icon"=>""
),
"en"=>array(
"short"=>"en",
"name"=>"English",
"icon"=>""
)
);
/**
* for debugging and developing
* Example: "dev" or "production"
*/
$config["mode"] = "production";
/**
* E-Mail addresses of the platform
*/
$config["mail"]["from"] = "[email protected]";
$config["mail"]["replyto"] = "[email protected]";
/**
* Executabels
*/
$config["bin"]["git"] = "git";
$config["bin"]["php"] = "php";
/**
* Additional Data Service of OPTV
*/
$config["ads"]["api"]["uri"] = "";
$config["ads"]["api"]["key"] = "";
/**
* Platform Database (mariadb/MySQL) information
*/
$config["platform"]["sql"]["access"]["host"] = "";
$config["platform"]["sql"]["access"]["user"] = "";
$config["platform"]["sql"]["access"]["passwd"] = "";
$config["platform"]["sql"]["db"] = "";
$config["platform"]["sql"]["tbl"]["Organisation"] = "organisation";
$config["platform"]["sql"]["tbl"]["Term"] = "term";
$config["platform"]["sql"]["tbl"]["Document"] = "document";
$config["platform"]["sql"]["tbl"]["Person"] = "person";
$config["platform"]["sql"]["tbl"]["Auth"] = "auth";
$config["platform"]["sql"]["tbl"]["Conflict"] = "conflict";
$config["platform"]["sql"]["tbl"]["Entitysuggestion"] = "entitysuggestion";
$config["platform"]["sql"]["tbl"]["User"] = "user";
/**
* Parliament Database information
* This is an example for a parliament called "DE" (as it can be seen by the key ["DE"] at the object $config["parliament"])
* There also can be multiple parliaments available at the platform by duplicating the configuration under different keys
*/
$config["parliament"]["DE"]["label"] = ""; //E.g. "Deutscher Bundestag"
$config["parliament"]["DE"]["sql"]["access"]["host"] = "";
$config["parliament"]["DE"]["sql"]["access"]["user"] = "";
$config["parliament"]["DE"]["sql"]["access"]["passwd"] = "";
$config["parliament"]["DE"]["sql"]["db"] = "";
$config["parliament"]["DE"]["sql"]["tbl"]["AgendaItem"] = "agendaitem";
$config["parliament"]["DE"]["sql"]["tbl"]["ElectoralPeriod"] = "electoralperiod";
$config["parliament"]["DE"]["sql"]["tbl"]["Session"] = "session";
$config["parliament"]["DE"]["sql"]["tbl"]["Media"] = "media";
$config["parliament"]["DE"]["sql"]["tbl"]["Annotation"] = "annotation";
$config["parliament"]["DE"]["sql"]["tbl"]["Text"] = "text";
$config["parliament"]["DE"]["git"]["repository"] = ""; //e.g. https://github.com/OpenParliamentTV/OpenParliamentTV-Data-DE.git
$config["parliament"]["DE"]["ES"]["index"] = "de"; // openparliamenttv_THIS
/**
* Path to the wikidata dumps. See Docs for more informations
*/
$config["parliament"]["DE"]["cache"]["wp"] = __DIR__."/data/wikidataDumps/DE";
/**
* Configuration for the ElasticSearch or OpenSearch server
*/
$config["ES"]["hosts"] = []; // E.g. ["https://@localhost:9200"]
$config["ES"]["BasicAuthentication"]["user"] = "";
$config["ES"]["BasicAuthentication"]["passwd"] = "";
$config["ES"]["SSL"]["pem"] = "" // E.g. realpath(__DIR__."/../opensearch-root-ssl.pem");
?>