spring.properties 3.73 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
db.url=jdbc:mysql://localhost/genesyslive?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
Matija Obreza's avatar
Matija Obreza committed
25 26 27 28
db.driverClassName=com.mysql.jdbc.Driver
db.dialect=org.hibernate.dialect.MySQL5Dialect
db.username=root
db.password=
29
db.showSql=false
30
db.hbm2ddl=do-nothing
Matija Obreza's avatar
Matija Obreza committed
31

Matija Obreza's avatar
Matija Obreza committed
32
c3p0.acquireIncrement=1
33 34 35
c3p0.minPoolSize=1
c3p0.maxPoolSize=5
c3p0.maxIdleTime=10
Matija Obreza's avatar
Matija Obreza committed
36

Matija Obreza's avatar
Matija Obreza committed
37 38 39
# reCAPTCHA API: These are our keys for localhost
captcha.privateKey=6Lf7oucSAAAAAExAgGEZeO2p1rCXfDmd9e
captcha.publicKey=6Lf7oucSAAAAAGaS7ObroY2bNgCqMTmpyFVu7wMW
Matija Obreza's avatar
Matija Obreza committed
40

Matija Obreza's avatar
Matija Obreza committed
41 42
# paths
download.files.dir=./data/
Matija Obreza's avatar
Matija Obreza committed
43

44
# ITPGRFA Easy-SMTA account (if you have one)
45
itpgrfa.easysmta.url=https://mls.planttreaty.org/itt/index.php?r=extsys/userinfo
46 47
itpgrfa.easysmta.username=bar
itpgrfa.easysmta.password=foo
48

Matija Obreza's avatar
Matija Obreza committed
49 50 51
# GA Account
google.analytics.account=

Matija Obreza's avatar
Matija Obreza committed
52
# CDN
Matija Obreza's avatar
Matija Obreza committed
53 54 55 56
cdn.server=https://s1.cdn.genesys-pgr.org
cdn.base=${cdn.server}
cdn.flags.url=${cdn.base}/html/flags

57 58

# Content creation on startup
59
auto.createContent=false
60

61 62 63 64
# Mail properties
mail.host=localhost
mail.port=25

Matija Obreza's avatar
Matija Obreza committed
65 66
mail.user.from=test@localhost
mail.requests.to=test@localhost
67 68 69 70
mail.user.password=
mail.user.name=

mail.smtp.ssl.enable=true
71
mail.smtp.starttls.enable=true
72 73 74 75 76 77 78 79 80 81 82 83 84
mail.smtp.auth=true
mail.transport.protocol=smtp

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==================================

85
#google properties
Matija Obreza's avatar
Matija Obreza committed
86 87 88
google.consumerKey=
google.consumerSecret=

89

90 91 92 93 94 95 96
#executor properties
executor.core.pool.size=4
executor.max.pool.size=16
executor.queue.capacity=100

#scheduler properties
scheduler.max.pool.size=16
97 98

# Hazelcast
Matija Obreza's avatar
Matija Obreza committed
99
hazelcast.instanceName=genesys
100 101 102 103 104 105 106 107 108
hazelcast.name=genesys
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
109 110 111

# Theme
theme.defaultThemeName=dev
112 113

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

Matija Obreza's avatar
Matija Obreza committed
115 116
# TileServer CDN
#tileserver.cdn='https://s1'
117 118
#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'
tileserver.cdn='http://localhost:8080'
Matija Obreza's avatar
Matija Obreza committed
119

Matija Obreza's avatar
Matija Obreza committed
120 121 122 123 124
# TileServer Cache
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
125 126

# Connection to Elasticsearch
127
elasticsearch.url=http://localhost:9200/
128 129 130 131 132 133

transifex.project=genesys-dev
transifex.username=Alexandr19011990
transifex.password=Alexandr19011990
transifex.min.translated=80
transifex.base.api.url =https://www.transifex.com/api/2/