Miscellaneous Configuration

You can configure the following Dari features in the Tomcat context.xml file, where options are expressed as name-value pairs.

Signed Cookies

Key: dari/cookieSecret Type: java.lang.String
Used by the com.psddev.dari.util.JspUtils class to implement secure signed cookies. Enter a reasonably long random string of characters.

Caching Filter

Key: dari/isCachingFilterEnabled Type: java.lang.Boolean
Used by CachingDatabaseFilter to create or not create an instance of com.psddev.dari.db.CachingDatabase.

Mail Provider

<Environment name="dari/defaultMailProvider" type="java.lang.String" value="{custom}" override="false" />
<Environment name="dari/mailProvider/{custom}/class" type="java.lang.String" value="{class}" override="false" />
<Environment name="dari/mailProvider/{custom}/host" type="java.lang.String" value="{youremail-smtp.amazonaws.com}" override="false" />
<Environment name="dari/mailProvider/{custom}/port" value="{portnumber}" type="java.lang.String" />
<Environment name="dari/mailProvider/{custom}/username" type="java.lang.String" value="{username}" override="false" />
<Environment name="dari/mailProvider/{custom}/password" type="java.lang.String" value="{password}" override="false" />
Key: dari/defaultMailProvider Type: java.lang.String
Indicates integration of a mail provider with Brightspot. Set the value to a label that identifies the configuration of the mail provider.
Key: dari/mailProvider/{custom}/class Type: java.lang.String
The mail provider class that implements the MailProvider interface. Set the value to the fully qualified class name. You can specify a custom class or com.psddev.dari.util.SmtpMailProvider provided with Brightspot. Replace the {custom} placeholder with the value that you set for the dari/defaultMailProvider key.
Key: dari/mailProvider/{custom}/host Type: java.lang.String
The host on which your mail provider runs. Replace the {custom} placeholder with the value that you set for the dari/defaultMailProvider key.
Key: dari/mailProvider/{custom}/host Type: java.lang.String
The user name for your mail provider. Replace the {custom} placeholder with the value that you set for the dari/defaultMailProvider key.
Key: dari/mailProvider/{custom}/port Type: java.lang.String
The port number on which the outgoing mail server is running. Replace the {custom} placeholder with the value that you set for the dari/defaultMailProvider key.
Key: dari/mailProvider/{custom}/host Type: java.lang.String
The password for your mail provider. Replace the {custom} placeholder with the value that you set for the dari/defaultMailProvider key.