/
openplenary-config.groovy.sample
81 lines (66 loc) · 2.75 KB
/
openplenary-config.groovy.sample
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// *********************************************************************************
// To load your custom configuration, rename this file as openplenary-config.groovy
// *********************************************************************************
// Needed to generate the user register confirmation link
// Type your domain and/or context if it is different than the default value http://localhost:8080/openplenary
grails.serverURL = "http://localhost:8080/openplenary"
// Sets the default locale
grails.openplenary.defaultLocale = new Locale("en","EN")
// DATABASE SETTINGS
// By default H2 database in memory mode
//
// Uncomment the code below and configure it properly if you use a MySQL database server.
//
//dataSource {
// pooled = true
// driverClassName = "com.mysql.jdbc.Driver"
// dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
// dbCreate = "update" // one of 'create', 'create-drop','update'
// url = "jdbc:mysql://localhost/openplenary?useUnicode=yes&characterEncoding=UTF-8"
// username = "user"
// password = "password"
//}
// MAIL SETTINGS
// Uncomment and configure if needed.
// Follow this link for more information: http://grails.org/plugin/mail
//
//grails {
// mail {
// host = "smtp.foo.bar"
// port = 465
// username = "user@foo.bar"
// password = "passwd"
// props = ["mail.smtp.auth":"true",
// "mail.smtp.socketFactory.port":"465",
// "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
// "mail.smtp.socketFactory.fallback":"false"]
//
// }
//}
// The from email address used in the register confirmation message
grails.openplenary.mail.from = 'user@foo.bar'
// The HTML layout. By default 'main'
grails.openplenary.layout = 'main'
// The color style to be applied to the layout (blue, brown, green, orange, red, violet or yellow)
grails.openplenary.style = 'yellow'
// The name of the town, city or entity
grails.openplenary.name = 'FooCity'
// Allow anonymous votes. By default false
grails.openplenary.voting.allowAnonymous = false
// Maximum number of anonymous votes if "grails.openplenary.voting.allowAnonymous" is set to true
// By default 5
grails.openplenary.voting.maxAnonymousVotes = 5
// Numbers of limit characters to slice the text of a point.
// By default 1000
grails.openplenary.subject.slicePoint = 1000
// If true the users email is encoded in the database.
// By default false
grails.openplenary.encodeEmail = false
// File upload directory
grails.openplenary.fileUploadPath = "/foo/bar"
// FACEBOOK Settings
grails.plugins.springsecurity.facebook.appId='yourAppId'
grails.plugins.springsecurity.facebook.secret='yourSecret'
// TWITTER Settings - NOT IMPLEMENTED YET
grails.plugins.springsecurity.twitter.consumerKey='yourKey'
grails.plugins.springsecurity.twitter.consumerSecret='yourSecret'