Skip to content

Commit

Permalink
Added dataSource to default config.
Browse files Browse the repository at this point in the history
  • Loading branch information
dewarim committed Jun 30, 2015
1 parent 9a1fda9 commit 80b69a9
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion cinnamon-config.example.groovy
Expand Up @@ -44,7 +44,7 @@ data_root = '/opt/cinnamon/cinnamon-data'
* The recommended place is in $data_root/index,
* but some legacy systems have stored the index in system_root/index.
*/
luceneIndexPath = '/opt/cinnamon/cinnamon-system/index'
luceneIndexPath = '/opt/cinnamon/cinnamon-data/index'

/*
* System administrator - currently not used.
Expand All @@ -56,6 +56,49 @@ default_repository = 'demo'
// Size of preview images in folder view.
previewSize = 128

// Database connection properties:
environments{
development{
dataSource {
dialect = org.hibernate.dialect.PostgreSQLDialect
driverClassName = 'org.postgresql.Driver'
username = 'cinnamon'
password = 'cinnamon'
url = 'jdbc:postgresql://localhost/demo'
properties {
maxActive = -1
minEvictableIdleTimeMillis = 1800000
timeBetweenEvictionRunsMillis = 1800000
numTestsPerEvictionRun = 3
testOnBorrow = true
testWhileIdle = true
testOnReturn = true
validationQuery = "SELECT 1"
}
}
}
production{
dataSource {
dialect = org.hibernate.dialect.PostgreSQLDialect
driverClassName = 'org.postgresql.Driver'
username = 'cinnamon'
password = 'cinnamon'
url = 'jdbc:postgresql://localhost/demo'
properties {
maxActive = -1
minEvictableIdleTimeMillis = 1800000
timeBetweenEvictionRunsMillis = 1800000
numTestsPerEvictionRun = 3
testOnBorrow = true
testWhileIdle = true
testOnReturn = true
validationQuery = "SELECT 1"
}
}
}

}

/*
This defines a dataSource for the audit-log for lifecycle changes.
You may use one of your Cinnamon repository databases or a separate
Expand Down

0 comments on commit 80b69a9

Please sign in to comment.