Server options can be configured in
cosmo.properties. In the default server bundle this file can be found at
SNARF_HOME/etc/cosmo.properties. A full list of server configuration variables is documented in that file, and commonly used variables have been documented below.
Disabling signups
To disable anonymous user signups, set
cosmo.service.account.disableSignups to
true. New user account can still be created via the user administration console.
Account activation
To enable account activation, which requires new users to react to an email sent to their user account before they are able to authenticate with the server, set
cosmo.service.account.requireActivation to
true.
Out-of-the-box collections
To give new users a default collection at signup time, set
cosmo.service.account.createOutOfBoxCollections to
true.
Hibernate dialect
It is very important that when using any database other than the default embedded Derby database, to make sure the Hibernate dialect is set correctly. The dialect is set in
cosmo.hibernate.dialect and there are examples for MySQL and Postgres commented out. To switch dialects, comment out the old value and uncomment the relevant value.