-
Notifications
You must be signed in to change notification settings - Fork 4
II.1.d. server
- server.chat.ttl
- server.ddosProtection.checkInterval
- server.ddosProtection.enabled
- server.ddosProtection.errorCode
- server.ddosProtection.errorData
- server.ddosProtection.maxWeight
- server.ddosProtection.rules
- server.ddosProtection.static
- server.ddosProtection.weight
- server.ddosProtection.ws.connectionLimit
- server.ddosProtection.ws.maxMessageLength
- server.port
- server.rss.enabled
- server.rss.postCount
- server.rss.ttl
- server.statistics.enabled
- server.statistics.ttl
- server.youtubeApiKey
Time-to-live for the private chats (in minutes). If no new message is added within the TTL, the chat is deleted from the database.
Default: 10080
(7 days).
Interval (in milliseconds) to check connections and decrement weights for the DDoS protection module.
Default: 1000
(1 second).
Determines whether simple DDoS protection module is enabled.
See the GitHub repo for detailed description.
DDoS protection is enabled by default.
HTTP error code to be set on DDoS detection.
Default: 429
(Too Many Requests).
Warning: You should not change it.
Data to be passes to the client on DDoS detection.
Default: "Not so fast!"
.
Note: The data may be an HTML string.
Default maximum allowed weight per IP.
Default: 10
.
Array of rules to apply to each request.
By default, the following rules are applied:
[
{
regexp: "^/api.*",
maxWeight: 6,
queueSize: 4
},
{
string: "/action/search",
maxWeight: 1
},
{
regexp: ".*",
maxWeight: 10
}
]
Enable DDoS protection of static content.
By default, static content is not DDoS-protected.
Default request weight.
Default: 1
.
WebSocket connection limit per IP.
Default: 10
.
Maximum WebSocket message length.
Default: 20480
.
The port on which the server will listen for connections. Normally 80
, but the value may differ if the traffic goes through some HTTP server, such as nginx.
Default: 8080
.
Determines if the RSS feed is generated for each board.
By default RSS feed generation is enabled.
Number of posts to include in the RSS feed.
Default: 500
.
RSS feed time-to-live (in minutes). Every server.rss.ttl
minutes the RSS feed is regenerated.
Default: 60
(1 hour).
Determines if the total and board statistics are generated.
By default statistics generation is enabled.
Statistics time-to-live (in minutes). Every server.statistics.ttl
minutes the statistics are regenerated.
Default: 60
(1 hour).
YouTube API key used to retrieve YouTube videos information in the posts and to markup the corresponding links properly (adding a tooltip with video title and thumbnail, and creating an expandable embedded YouTube player). YouTube API documentation.