This repository was archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlocalconfig.example.json
More file actions
66 lines (66 loc) · 2.51 KB
/
Copy pathlocalconfig.example.json
File metadata and controls
66 lines (66 loc) · 2.51 KB
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
{
"database": {
"engine": "mariadb",
"name": "interactivemaps",
"username": "mapuser",
"password": "***PASSWORD***",
"port": 3306,
"dialectOptions": {"connectTimeout": 1000}
},
"databaseOldProd": {
"_description": "Same as database above, used for migrations (as read source)"
},
"databaseB": {
"database": "map-database-here",
"username": "map-user-here",
"password": "***PASSWORD***",
"port": 5432,
"host": "localhost",
"dialect":"postgres",
"dialectOptions": {
"connectTimeout": 1000
},
"logging": false
},
"mailgun": {
"auth": {
"api_key": "***SECRETS***",
"domain": "example.org"
},
"host": "api.eu.mailgun.net",
"mailFrom": "maps-noreply@example.org",
"mailTo": "collector@example.com"
},
"exampleMail": {
"shortlang": "en",
"ihavesparql": "Y",
"asktype": "Change existing map",
"contactmail": "bajor@example.org",
"contactname": "Nana Visitor",
"comment": "Hello World",
"sparqlcode": "# Example query: keep the name and the use identical to these ones\r\nSELECT ?item ?itemLabel ?coord ?commons ?website ?img ?lang ?langcode\r\nWHERE {\r\n ?item wdt:P31/wdt:P279* wd:Q6581615 .\r\n ?item wdt:P625 ?coord\r\n OPTIONAL { ?item wdt:P373 ?commons }\r\n OPTIONAL { ?item wdt:P856 ?website }\r\n OPTIONAL { ?item wdt:P18 ?img }\r\n OPTIONAL {\r\n ?art schema:about ?item ;\r\n schema:inLanguage ?langcode .\r\n BIND(IF(?langcode in ('en', 'it', 'fr', 'de'),?art,?langcode) AS ?lang)\r\n }\r\n SERVICE wikibase:label { bd:serviceParam wikibase:language \"en,de,fr,it\". }\r\n}\r\nORDER BY ?item ASC(?langcode) ASC(?lang) DESC(?coord) ASC(?commons) DESC(?website) ASC(?img)"
},
"stat": {
"time": "0 */30 * * * *",
"interval": 5000,
"_comment": "Override the value specified in config.json here; delete if you're fine with default."
},
"createTables": true,
"renameToLogo": "rename this key to logo to override config.logo",
"cronTime": "0 33 1,13 * * *",
"msCronWaitWikidata": 10000,
"historyTimelineLimit": 52,
"historyOnlyDiff": true,
"adminMenuExtra": [
{
"_comment": "Additional elements on admin menu bar. Semantic UI icon, url and title to show.",
"icon": "chart line",
"url": "https://example.org/path/to/your/stats/dashboard/demo",
"title": "Stats"
}
],
"devMode": false,
"screenshotServerPort": 9031,
"url": "http://example.org",
"internalUrl": "http://localhost:9030"
}