-
Notifications
You must be signed in to change notification settings - Fork 2
/
MoquiConf.xml
32 lines (30 loc) · 2.05 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
<?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">
<webapp-list>
<!-- NOTES:
- this configuration increases the session timeout to 2 weeks
- WARNING: do not deploy in the same Moqui instance (webapp) as applications that need to be
PCI compliant or otherwise more secure (generally 15 or 30 minute session timeout)
- to avoid logout on browser close:
- this will happen with default cookie 'max age' in embedded Jetty (cookie expire of 'Session')
- with embedded Jetty (from MoquiStart.java) set the environment variable
'webapp_session_cookie_max_age' to something like '1209600' which is 14 days in seconds
- for other app servers use the setting for the max age or expire time of the session cookie
-->
<webapp name="webroot">
<!-- timeout session in 2 weeks without a request -->
<session-config timeout="20160"/>
<!-- cache static assets for 1 year without a request -->
<response-header type="web-resource-inline" name="Cache-Control" value="max-age=31536000, must-revalidate, public"/>
<response-header type="screen-resource-text" name="Cache-Control" value="max-age=1209600, must-revalidate, public"/>
</webapp>
</webapp-list>
<screen-facade>
<screen location="component://webroot/screen/webroot.xml" default-subscreen="r">
<subscreens-item name="wcapp" menu-include="false" location="component://WeCreate/screen/wcapp.xml"/>
<subscreens-item name="wcinternal" menu-include="false" location="component://WeCreate/screen/wcinternal.xml"/>
<subscreens-item name="wcstatic" menu-include="false" location="component://WeCreate/screen/wcstatic.xml"/>
</screen>
</screen-facade>
</moqui-conf>