This repository has been archived by the owner on Mar 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
MoquiConf.xml
63 lines (58 loc) · 3.57 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
<?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-2.1.xsd">
<default-property name="kibana_host" value="localhost"/>
<default-property name="kibana_port" value="5601"/>
<!-- ElasticSearch modes:
embedded: full or coordinating node depending on configuration in elasticsearch.yml
rest: REST (over HTTP) client, uses ES Java REST Client
-->
<default-property name="elasticsearch_mode" value="embedded"/>
<!-- ElasticSearch hosts for elasticsearch_mode=rest, looks for elasticsearch_host${[1-9]} -->
<default-property name="elasticsearch_host1" value="http://localhost:9200"/>
<default-property name="elasticsearch_host2" value=""/>
<default-property name="elasticsearch_host3" value=""/>
<default-property name="elasticsearch_host4" value=""/>
<tools>
<tool-factory class="org.moqui.elasticsearch.ElasticSearchToolFactory" init-priority="15" disabled="false"/>
<tool-factory class="org.moqui.elasticsearch.ElasticSearchLoggerToolFactory" init-priority="16" disabled="false"/>
</tools>
<webapp-list>
<webapp name="webroot">
<filter name="ElasticRequestLogFilter" class="org.moqui.elasticsearch.ElasticRequestLogFilter" async-supported="true">
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter>
<filter name="ElasticAuthFilter" class="org.moqui.impl.webapp.MoquiAuthFilter" async-supported="true">
<init-param name="permission" value="ElasticRemote"/>
<url-pattern>/elastic/*</url-pattern>
</filter>
<filter name="KibanaAuthFilter" class="org.moqui.impl.webapp.MoquiAuthFilter" async-supported="true">
<init-param name="permission" value="KibanaRemote"/>
<url-pattern>/kibana/*</url-pattern>
</filter>
<servlet name="ElasticSearchProxy" class="org.eclipse.jetty.proxy.ProxyServlet$Transparent" load-on-startup="1" async-supported="true">
<!-- this proxies to the embedded ElasticSearch instance -->
<init-param name="proxyTo" value="http://localhost:9200"/>
<init-param name="prefix" value="/elastic"/>
<url-pattern>/elastic/*</url-pattern>
</servlet>
<servlet name="KibanaProxy" class="org.eclipse.jetty.proxy.ProxyServlet$Transparent" load-on-startup="1" async-supported="true">
<!-- this proxies to a Kibana instance run locally, in another container, etc -->
<!-- in kibana.yml set server.basePath: "/kibana" -->
<init-param name="proxyTo" value="http://${kibana_host}:${kibana_port}"/>
<init-param name="prefix" value="/kibana"/>
<url-pattern>/kibana/*</url-pattern>
</servlet>
</webapp>
</webapp-list>
<screen-facade>
<screen location="component://webroot/screen/webroot.xml">
<subscreens-item name="elastichq" menu-include="false" location="component://moqui-elasticsearch/screen/elastichq.xml"/>
</screen>
<screen location="component://tools/screen/System.xml">
<subscreens-item name="LogViewer" menu-title="Log Viewer" menu-index="20"
location="component://moqui-elasticsearch/screen/System/LogViewer.xml"/>
</screen>
</screen-facade>
</moqui-conf>