spring.properties 4.64 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
#-------------------------------------------------------------------------------
Matija Obreza's avatar
Matija Obreza committed
2
# Copyright 2014 Global Crop Diversity Trust
Matija Obreza's avatar
Matija Obreza committed
3 4 5 6 7 8 9 10 11 12 13 14 15
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#   http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
16

Matija Obreza's avatar
Matija Obreza committed
17 18 19
base.host=localhost
base.hostname=${base.host}:8080
base.url=http://${base.hostname}
Matija Obreza's avatar
Matija Obreza committed
20 21 22
base.cookie-domain=
base.cookie-secure=false
base.cookie-http-only=false
23

Matija Obreza's avatar
Matija Obreza committed
24 25 26
# robots.txt
robots.allow=false

27
db.url=jdbc:mysql://localhost/genesys20150630?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
Matija Obreza's avatar
Matija Obreza committed
28 29 30
db.driverClassName=com.mysql.jdbc.Driver
db.username=root
db.password=
Matija Obreza's avatar
/1/ GUI  
Matija Obreza committed
31
db.showSql=true
Matija Obreza's avatar
Matija Obreza committed
32
db.hbm2ddl=true
Matija Obreza's avatar
Matija Obreza committed
33
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
Matija Obreza's avatar
Matija Obreza committed
34

35 36
google.api.key=AIzaSyBEvPuc8j5ps5GDQ3tdnTJaffKhfOdxFVc
google.url.shortener=https://www.googleapis.com/urlshortener/v1/url
Matija Obreza's avatar
Matija Obreza committed
37
news.menu.abbreviate.length=22
38

Matija Obreza's avatar
Matija Obreza committed
39
c3p0.acquireIncrement=1
40 41 42
c3p0.minPoolSize=1
c3p0.maxPoolSize=5
c3p0.maxIdleTime=10
Matija Obreza's avatar
Matija Obreza committed
43

Matija Obreza's avatar
Matija Obreza committed
44
# reCAPTCHA API: These are our keys for localhost
Matija Obreza's avatar
Matija Obreza committed
45
captcha.privateKey=6Lfb5w4TAAAAADoSaBZsxx832HH5YHdCdEiS2v0s
46 47
captcha.siteKey=${captcha.publicKey}
# Obsolete, use captcha.siteKey
Matija Obreza's avatar
Matija Obreza committed
48
captcha.publicKey=6Lfb5w4TAAAAAI6pD_4l5uIwXEaUJ6KQmhU9cyjx
Matija Obreza's avatar
Matija Obreza committed
49

Matija Obreza's avatar
Matija Obreza committed
50 51
# paths
download.files.dir=./data/
Matija Obreza's avatar
Matija Obreza committed
52

53
# ITPGRFA Easy-SMTA account (if you have one)
54
itpgrfa.easysmta.url=https://mls.planttreaty.org/itt/index.php?r=extsys/userinfo
55 56
itpgrfa.easysmta.username=bar
itpgrfa.easysmta.password=foo
57

Matija Obreza's avatar
Matija Obreza committed
58 59 60
# GA Account
google.analytics.account=

Matija Obreza's avatar
Matija Obreza committed
61
# CDN
62
cdn.server=${base.url}
Matija Obreza's avatar
Matija Obreza committed
63
cdn.base=${cdn.server}
64
cdn.flags.url=${cdn.base}/html/0/images/flags
Matija Obreza's avatar
Matija Obreza committed
65

66 67

# Content creation on startup
68
auto.createContent=false
69

70 71 72 73
# Mail properties
mail.host=localhost
mail.port=25

Matija Obreza's avatar
Matija Obreza committed
74 75
mail.user.from=test@localhost
mail.requests.to=test@localhost
76 77 78 79
mail.user.password=
mail.user.name=

mail.smtp.ssl.enable=true
80
mail.smtp.starttls.enable=true
81 82 83
mail.smtp.auth=true
mail.transport.protocol=smtp

84 85
list.logger.pagination.size=50

86 87 88 89 90 91 92 93 94 95
mail.async=true
mail.debug.message= Email has been sent succesfully\n\
                                        Details:\n\
                                        From:%s\n\
                                        To:%s\n\
                                        Subject: %s\n\
                                        Text: \n==================================\n\n\
                                            %s\
                                        \n\n==================================

96
#google properties
Matija Obreza's avatar
Matija Obreza committed
97 98 99
google.consumerKey=
google.consumerSecret=

100

101 102 103 104 105 106 107
#executor properties
executor.core.pool.size=4
executor.max.pool.size=16
executor.queue.capacity=100

#scheduler properties
scheduler.max.pool.size=16
108 109

# Hazelcast
110 111
hazelcast.instanceName=hz-genesys
hazelcast.name=genesys-hz-3.5
112 113 114 115 116 117 118 119
hazelcast.password=hazelcasts
hazelcast.port=5701

# AWS Autodetection
hazelcast.aws.access-key=
hazelcast.aws.secret-key=
hazelcast.aws.region=eu-west-1
hazelcast.aws.security-group=sg-hazelcast
120 121 122

# Theme
theme.defaultThemeName=dev
123 124

scheduler.tokens.cleanup.hours=1
Matija Obreza's avatar
Matija Obreza committed
125

Matija Obreza's avatar
Matija Obreza committed
126 127
# TileServer CDN
#tileserver.cdn='https://s1'
128
#tileserver.cdn='https://s1.cdn.genesys-pgr.org','https://s2.cdn.genesys-pgr.org','https://s3.cdn.genesys-pgr.org','https://s4.cdn.genesys-pgr.org'
129
tileserver.cdn='${base.url}'
Matija Obreza's avatar
Matija Obreza committed
130

Matija Obreza's avatar
Matija Obreza committed
131
# TileServer Cache
132
cache.defaultCacheSize=5000
Matija Obreza's avatar
Matija Obreza committed
133 134 135 136
cache.tileserver.max-size=1000
cache.tileserver.time-to-live-seconds=300
cache.tileserver.max-idle-seconds=0
cache.tileserver.eviction-policy=LRU
Matija Obreza's avatar
Matija Obreza committed
137 138

# Connection to Elasticsearch
139
elasticsearch.url=http://localhost:9200/
140

141 142


143 144 145 146
transifex.project=genesys-dev
transifex.username=Alexandr19011990
transifex.password=Alexandr19011990
transifex.min.translated=80
147
transifex.base.api.url=https://www.transifex.com/api/2/
148
transifex.hook.key=this-is-a-test-hook-key
149 150 151 152 153 154 155 156
#TODO perhaps, Velocity template?
transifex.content.template=<html xmlns="http://www.w3.org/1999/xhtml">\
                              <head>\
                            <meta http-equiv="content-type" content="text/html; charset=utf-8"/>\
                            <title>%s</title>\
                              </head>\
                              <body>%s</body>\
                            </html>
157

158 159 160 161 162

# File repository
file.repository.dir=${download.files.dir}/repository

# File repository S3 parameter values
163 164 165
s3.accessKey=
s3.secretKey=
s3.bucket=
166
s3.region=