-
Notifications
You must be signed in to change notification settings - Fork 4
II.1.e. site
- site.dateFormat
- site.domain
- site.extraScripts
- site.locale
- site.maxSearchQueryLength
- site.protocol
- site.timeOffset
- site.tripcodeSalt
- site.twitter.integrationEnabled
- site.vkontakte.integrationEnabled
- site.vkontakte.appId
- site.vkontakte.accessToken
- site.ws.transports
The date and time format used by the site (posting date, etc.).
Default: MM/DD/YYYY hh:mm:ss
.
Used for the same purpose as the site.protocol
.
Default: localhost:8080
.
An object-map of extra scripts (JavaScript), that will be inserted into the page. The keys of the map correspond to the page (template name), and values are arrays, specified using one of the following format:
-
{ source: theSource }
Thesrc
attribute of ascript
tag will be set totheSource
exactly. -
{ fileName: theFileName }
Thesrc
attribute of ascript
tag will be set totheFileName
prefixed by the site path prefix (see I.4. Basic configuration) and the "js/" suffix. -
{ value: theValue }
Thevalue
will be used as a rawscript
tag content.
Note: A special key "_global"
is used to include scripts into all pages.
Example:
{
"site": {
"extraScripts": {
"boardPage": [
{ "fileName": "custom/myScript.js" },
{ "source": "http://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js" }
]
}
}
}
The locale used for loading corresponding translation files to translate the user interface.
Default: en
.
See also: II.6.c. Translations.
Maximum post search field length (in symbols).
Default: 50
.
The preferred protocol (either http
or https
). Used for links in the generated RSS feed, and for providing file links to external image search engines (such as TinEye).
Default: http
.
Global time offset from the UTC time for the server (specified in minutes, may be positive or negative). Useful if your server is located in another time zone than the target country.
Default: 0
.
A salt used to generate tripcodes out of user hashpasses.
Default: "ololo"
.
Important: You ought to change this to prevent your user hashpass hacking.
Enables Twitter integration, so that the twit links are transformed into embedded twit containers.
Twitter integration is enabled by default.
See the /markup.html
page for explanation.
Enables Vkontakte (Russian Phacebook analog) integration, so that the post links are transformed into embedded post containers.
Vkontakte integration is disabled by default.
See the /markup.html
page for explanation (you will have to configure Vkontakte integration to see it on the /markup.html
page).
Vkontakte application ID. An integer.
Default: 0
.
Vkontakte access token required to access Vkontakte services from the server.
Aquiring the token is a bit tricky, so here is a mini-howto:
Use this link:
https://oauth.vk.com/authorize?client_id=YOUR_VK_APP_ID&scope=audio,offline&redirect_uri=https://oauth.vk.com/blank.html&display=mobile&response_type=token
and then copy the token from the address line:
https://oauth.vk.com/blank.html#access_token=ACCESS_TOKEN&expires_in=0&user_id=YOUR_VK_USER_ID
SockJS WebSocket emulation transports. See official manual for details.
Default: ""
(an empty string; SockJS will try all protocols consequently).