Configuration
Sites & applications
Sites configuration and applications are fetched from the Registry at startup.
Shaper subscribe on the Registry event stream to keep configuration up to date.
Since it’s a backend application it must register as well.
1
2
3
4
5
6
7
|
kobi.registration:
base-url: # url of the registy api
rewriteContentTypePattern : "" # pattern on which Gluer may apply rewritting
backend: # Shaper web is a backend
handlePageModel: true # Shaper web handles page modeels
handleApplicationMode: true # Shaper web handles applicative modes
errorPassThrough: false # Gluer does not forward errors but catchs it
|
Couchbase bucket
Shaper uses a Couchbase bucket to store and retrieve designed page, models and configured fragments, you must configure this bucket (values configured below are the default values if you do not set properties).
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
|
shaper.couchbase:
cluster:
hosts: # comma separated list of couchbase host
bucket: # Name of the couchbase bucket used for shaper
username: # Username for the bucket
password: # Password for the bucket
environment:
max-request-lifetime: 75000 # Sets the maximum time (in milliseconds) a request is allowed to live
connect-timeout: 5000 # Connect timeout
query-timeout: 5000 # Query timeout
view-timeout: 5000 # View timeout
search-timeout: 5000 # Search timeout
query:
scan-consistency: REQUEST_PLUS # Please do not modify. Consistency between index and data (NOT_BOUNDED, REQUEST_PLUS, STATEMENT_PLUS, see https://docs.couchbase.com/server/current/indexes/performance-consistency.html
caches:
objects:
max-memory-size: 10485760 # Max memory size (in bytes) for document by key cache (exclusive with max-entry-size)
max-entry-size: # Max entry size for document by key cache (exclusive with max-memory-size)
ttl: 86400 # Time To Live (in seconds) for document by key cache
views:
max-memory-size: 1048576 # Max memory size (in bytes) for key by view cache (exclusive with max-entry-size)
max-entry-size: # Max entry size for key by view cache (exclusive with max-memorysize)
ttl: 86400 # Time To Live (in seconds) for key by veiw cache
searches:
max-memory-size: 1048576 # Max memory size (in bytes) for key by search cache (exclusive with max-entry-size)
max-entry-size: # Max entry size for key by search cache (exclusive with max-memory-size)
ttl: 86400 # Time To Live (in seconds) for key by search cache
|