-
Notifications
You must be signed in to change notification settings - Fork 11
/
MoquiConf.xml
108 lines (95 loc) · 6.88 KB
/
MoquiConf.xml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="UTF-8" ?>
<!-- No copyright or license for configuration file, details here are not considered a creative work. -->
<moqui-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-3.xsd">
<default-property name="hazelcast_group_name" value="moqui_h4"/>
<default-property name="hazelcast_multicast_enabled" value="false"/>
<default-property name="hazelcast_multicast_group" value="224.2.2.3"/>
<default-property name="hazelcast_multicast_port" value="54327"/>
<default-property name="hazelcast_tcp_ip_enabled" value="false"/>
<default-property name="hazelcast_tcp_ip_members" value=""/>
<default-property name="hazelcast_aws_enabled" value="false"/>
<default-property name="hazelcast_aws_region" value=""/>
<default-property name="hazelcast_aws_iam_role" value=""/>
<default-property name="hazelcast_aws_access_key" value=""/>
<default-property name="hazelcast_aws_secret_key" value=""/>
<default-property name="hazelcast_aws_security_group" value=""/>
<default-property name="hazelcast_aws_tag_key" value=""/>
<default-property name="hazelcast_aws_tag_value" value=""/>
<default-property name="hazelcast_aws_host_header" value="ec2.amazonaws.com"/>
<default-property name="hazelcast_aws_hz_port" value="5701"/>
<default-property name="hazelcast_aws_service_name" value=""/>
<default-property name="hazelcast_aws_family" value=""/>
<default-property name="hazelcast_aws_cluster" value=""/>
<default-property name="hazelcast_interfaces_enabled" value="false"/>
<default-property name="hazelcast_interface1" value=""/>
<default-property name="hazelcast_interface2" value=""/>
<default-property name="hazelcast_interface3" value=""/>
<default-property name="hazelcast_k8s_enabled" value="false"/>
<default-property name="hazelcast_k8s_namespace" value=""/>
<default-property name="hazelcast_k8s_service_name" value=""/>
<default-property name="hazelcast_k8s_service_label_name" value=""/>
<default-property name="hazelcast_k8s_service_label_value" value=""/>
<default-property name="hazelcast_k8s_pod_label_name" value=""/>
<default-property name="hazelcast_k8s_pod_label_value" value=""/>
<default-property name="hazelcast_k8s_zone_aware" value="false"/>
<tools notification-topic-factory="HazelcastNotificationTopic">
<!-- Hazelcast distributed tool set for caching, topics, executors, etc -->
<tool-factory class="org.moqui.hazelcast.HazelcastToolFactory" init-priority="05" disabled="false"/>
<tool-factory class="org.moqui.hazelcast.HazelcastCacheToolFactory" init-priority="06" disabled="false"/>
<tool-factory class="org.moqui.hazelcast.HazelcastDciTopicToolFactory" init-priority="06" disabled="false"/>
<tool-factory class="org.moqui.hazelcast.HazelcastNotificationTopicToolFactory" init-priority="06" disabled="false"/>
<tool-factory class="org.moqui.hazelcast.HazelcastExecutorToolFactory" init-priority="06" disabled="false"/>
</tools>
<cache-list distributed-factory="HazelcastCache"/>
<webapp-list>
<webapp name="webroot">
<!-- Hazelcast Session Replication Filter Configuration -->
<filter name="hazelcast-filter" class="com.hazelcast.web.WebFilter" async-supported="true" priority="1">
<!-- Do you want to use an existing HazelcastInstance? Default is null. -->
<init-param name="instance-name" value="moqui"/>
<!-- Configuration xml location; * as servlet resource OR * as classpath resource OR * as URL
Default is one of hazelcast-default.xml or hazelcast.xml in classpath. -->
<!-- <init-param name="config-location" value="/WEB-INF/hazelcast.xml"/> -->
<init-param name="use-client" value="false"/>
<!-- Name of the distributed map storing your web session objects -->
<init-param name="map-name" value="my-sessions"/>
<!-- TTL value of the distributed map storing your web session objects. Any integer between 0 and Integer.MAX_VALUE. Default is 1800 which is 30 minutes. -->
<!-- NOTE: in latest version of Hazelcast this not allowed because attaching to existing instance:
<init-param name="session-ttl-seconds" value="3600"/>
-->
<!-- How is your load-balancer configured? sticky-session means all requests of a session is routed to the node
where the session is first created. This is excellent for performance. If sticky-session is set to false, when a
session is updated on a node, entry for this session on all other nodes is invalidated. You have to know how your
load-balancer is configured before setting this parameter. Default is true.
-->
<init-param name="sticky-session" value="true"/>
<!-- Name of session id cookie -->
<init-param name="cookie-name" value="hazelcast.sessionId"/>
<!-- Domain of session id cookie. Default is based on incoming request. -->
<!-- <init-param name="cookie-domain" value=".mywebsite.com"/> -->
<!-- Should cookie only be sent using a secure protocol? Default is false. -->
<init-param name="cookie-secure" value="true"/>
<!-- Should HttpOnly attribute be set on cookie ? Default is false. -->
<init-param name="cookie-http-only" value="true"/>
<!-- Are you debugging? Default is false. -->
<init-param name="debug" value="false"/>
<!-- Do you want to shutdown HazelcastInstance during web application undeploy process? Default is true. -->
<init-param name="shutdown-on-destroy" value="false"/>
<!-- Do you want to cache sessions locally in each instance? Default is false. -->
<init-param name="deferred-write" value="false"/>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher><dispatcher>INCLUDE</dispatcher><dispatcher>REQUEST</dispatcher>
</filter>
<listener class="com.hazelcast.web.SessionListener"/>
</webapp>
</webapp-list>
<screen-facade>
<screen location="component://tools/screen/System.xml">
<subscreens-item name="HazelcastInfo" menu-title="Hazelcast Info" menu-index="21"
location="component://moqui-hazelcast/screen/HazelcastInfo.xml"/>
</screen>
</screen-facade>
<!-- Now set on ServiceFacade programmatically in post-facade init so HazelcastExecutorToolFactory doesn't have to init before facades:
<service-facade distributed-factory="HazelcastExecutor"/> -->
<entity-facade distributed-cache-invalidate="true" dci-topic-factory="HazelcastDciTopic"/>
</moqui-conf>