Reverbrain wiki

Site Tools


rift:configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rift:configuration [2013/12/05 20:42] (current)
elessar created
Line 1: Line 1:
 +====== Configuration ======
  
 +Have a look at configuration example:
 +
 +<file javascript server-config.json>​
 +{
 +    "​endpoints":​ [
 +        "​0.0.0.0:​8080"​
 +    ],
 +    "​backlog":​ 128,
 +    "​threads":​ 2,
 +    "​buffer_size":​ 65536,
 +    "​logger":​ {
 +        "​file":​ "/​dev/​stderr",​
 +        "​level":​ 4
 +    },
 +    "​daemon":​ {
 +        "​fork":​ false,
 +        "​uid":​ 1000
 +    },
 +    "​monitor-port":​ 20000,
 +    "​application":​ {
 +        "​remotes":​ [
 +            "​localhost:​1025:​2"​
 +        ],
 +        "​groups":​ [
 +            3,4
 +        ],
 +        "​metadata-groups":​ [
 +            1,2
 +        ],
 +        "​cache":​ {
 +            "​name":​ "​cache-id"​
 +        },
 + "​noauth"​ : "​forbidden",​
 +        "​bucket":​ {},
 +        "​redirect-port":​ 8080,
 +        "​https":​ true
 +    }
 +}
 +</​file>​
 +
 +Global part of it (everything except ''​application''​ subsection) is documented at [[thevoid:​configuration|TheVoid Configuration]] page.
 +
 +Application part consists of:
 +  * ''​remotes''​ - list of Elliptics servers'​ addresses in ''​host:​port:​family''​ format
 +  * ''​groups''​ - Elliptics groups where to store data if there are no buckets
 +  * ''​metadata-groups''​ - Elliptics groups where to store metadata: ''​cache''​ and ''​buckets''​ information
 +  * ''​cache'':​
 +    * ''​name''​ - key where to store list of all keys which are placed in special cache groups in addition to default ones
 +  * ''​bucket''​ - all data will be stored at buckets if present, enables bucket-based authorization
 +  * ''​noauth''​ may be one of the following values: ''​allowed''​ or ''​forbidden''​
 +    * ''​allowed''​ - if set makes possible to read/write data wthout buckets to Elliptics ''​groups''​
 +    * ''​forbidden''​ - all requests must go to buckets
 +  * ''​redirect-port''​ - if set ''/​redirect''​ handle will lead to non-80 port
 +  * ''​https''​ - if set to true ''/​redirect''​ handle will lead to ''​https''​ instead of ''​http''​
rift/configuration.txt ยท Last modified: 2013/12/05 20:42 by elessar