-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.default.json
60 lines (59 loc) · 2.53 KB
/
settings.default.json
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
// COUNTRY LINKIFY DEFAULT SETTINGS
{
"countryLinkify": {
"app": {
// Homepage should redirect to this URL. If set to "null",
// it will display all links with logos instead.
"homeUrl": null,
// Application title.
"title": "Country Linkify"
},
"country": {
// Cache country for IP results for up to 30 minutes.
"cacheDuration": 900,
// Default country.
"default": "us"
// If country can't be determined or there's no link for the user's country, you can add
// aliases / target countries here. For example, the following will set Spain as default
// for Portuguese users, Germany for Austrian and Swiss users, and United Kingdom for Great Britain.
// "es": ["pt"]
// "de": ["at", "ch"]
// "uk": ["gb"]
},
"images": {
// Path to where the link images / logos are stored. Defaults to /images on the application root.
"path": "./images"
},
"links": {
// Path to where link JSON files are stored. Defaults to /links on the application root.
"path": "./links",
// Auto reload links when the JSON files change. Set to false to disable.
"autoReload": true,
// Also check for plural names when matching link IDs.
"autoPlural": true,
// Link aliases.
// Sample: "light": ["led", "bulb"]
"aliases": {}
},
"server": {
// Base path where links should be served from. Defaults to the root of the web server "/".
"basePath": "/",
// Base path where the link logos are served from. Defaults to "/images/".
"imagesPath": "/images/",
// Base server URL, can be left as null if using as part of another website / app.
// Must be set when running in standalone mode.
"url": null,
// Server port, required if the url above is also set.
"port": null,
// Admin API key used as part of the API endpoint. For example if you set this to "my-api"
// then the Admin API will be available at /my-api/.
"apiKey": null,
// Bearer token to be passed on Admin API requests.
"apiToken": null
},
// Name of the bitecache collection.
"cacheName": "ip-country",
// Default encoding is set to UTF-8.
"encoding": "utf8"
}
}