-
Notifications
You must be signed in to change notification settings - Fork 5
/
application.properties
208 lines (181 loc) · 9.93 KB
/
application.properties
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# suppress inspection "SpringBootApplicationProperties" for whole file
spring.profiles.active=prod
# ===============================
# = DATA SOURCE
# ===============================
# Include the following database connection information in a local properties file by:
# 1) Creating an application.properties in the base directory
# 2) Creating a properties file elsewhere and setting spring.config.name and spring.config.location
#
# spring.datasource.url = jdbc:mysql://localhost:3306/{database_name}
# spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver
# spring.datasource.username = {username}
# spring.datasource.password = {password}
spring.datasource.tomcat.test-while-idle=true
spring.datasource.tomcat.validation-query=SELECT 1
# ===============================
# = Cache
# ===============================
# Enable this for one application startup if you are upgrading. Backup your database!
#spring.cache.ehcache.config=classpath:ehcache.xml
# ===============================
# = JPA / HIBERNATE
# ===============================
spring.jpa.show-sql=false
spring.jpa.hibernate.ddl-auto=validate
#spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL57InnoDBDialect
spring.jpa.properties.hibernate.jdbc.batch_size=10
#spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
spring.jpa.properties.hibernate.cache.use_second_level_cache=true
spring.jpa.properties.hibernate.cache.use_query_cache=true
spring.jpa.properties.hibernate.cache.region.factory_class=org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
spring.jpa.properties.javax.persistence.sharedCache.mode=ENABLE_SELECTIVE
# ===============================
# = Flyway database migration
# ===============================
# The baseline of the database (1.0.0) corresponds to the state of the database at release 1.3.1
flyway.enabled=true
flyway.baseline-on-migrate=true
flyway.locations=classpath:db/migration/common,classpath:db/migration/{vendor}
# ===============================
# = Thymeleaf configurations
# ===============================
#spring.thymeleaf.mode=LEGACYHTML5
#spring.thyleaf.prefix=file:src/main/resources/templates/
#spring.thymeleaf.cache=false
# ===============================
# = Jackson
# ===============================
# Ignore unknown properties when deserializing data from other registries
spring.jackson.deserialization.fail-on-unknown-properties=false
# ==============================================================
# = Messages and internationalization
# ==============================================================
# Set this to zero if you want to disable message cache
#spring.messages.cache-duration=0
# ==============================================================
# = OpenAPI documentation
# ==============================================================
springdoc.api-docs.path=/api
# ==============================================================
# = Spring Email
# ==============================================================
spring.mail.default-encoding=UTF-8
#spring.mail.host=localhost
#spring.mail.port=587
#spring.mail.username=XXXXXX
#spring.mail.password=
#spring.mail.properties.mail.smtp.auth=true
#spring.mail.properties.mail.smtp.starttls.enable=true
# ==============================================================
# = Logging / Debugging
# ==============================================================
#logging.level.org.springframework=DEBUG
#logging.level.org.hibernate=DEBUG
#logging.level.org.hibernate.SQL=DEBUG
#logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
#spring.jpa.properties.hibernate.show_sql=true
#spring.jpa.properties.hibernate.use_sql_comments=true
#spring.jpa.properties.hibernate.format_sql=true
#spring.jpa.properties.hibernate.type=trace
#spring.jpa.show-sql=true
#logging.level.org.hibernate=TRACE
# ==============================================================
# = Spring Actuator
# ==============================================================
management.context-path=/admin
management.security.roles=ADMIN
# ==============================================================
# = Application Specific Defaults
# ==============================================================
# Cached gene, orthologs, annotations, etc.
rdp.settings.cache.enabled=true
rdp.settings.cache.load-from-disk=false
rdp.settings.cache.gene-files-location=file:genes/
rdp.settings.cache.ortholog-file=classpath:cache/DIOPT_filtered_data_May2021.gz
rdp.settings.cache.term-file=http://purl.obolibrary.org/obo/go.obo
rdp.settings.cache.annotation-file=ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/gene2go.gz
rdp.settings.cache.organ-file=http://purl.obolibrary.org/obo/uberon.obo
# Send email to admin-email whenever there is a new registration
rdp.settings.send-email-on-registration=false
# Maximum number of genes a term can have associated with it
# and still be available to add to a profile.
rdp.settings.go-term-size-limit=50
# Tiers
# TIER3 corresponds to genes added via GO terms. If disabled, the corresponding sections under the MO tabs will not be
# displayed.
rdp.settings.enabled-tiers=TIER1,TIER2,TIER3
# Profile
rdp.settings.profile.enabled-researcher-positions=PRINCIPAL_INVESTIGATOR
rdp.settings.profile.enabled-researcher-categories=IN_SILICO,IN_VITRO_BIOCHEMICAL,IN_VITRO_CELLS,IN_VITRO_STRUCTURAL,IN_VIVO,OTHER
# Organs
rdp.settings.organs.enabled=true
# These are also defined under messages.properties
rdp.site.fullname=Rare Diseases: Models & Mechanisms Network
rdp.site.shortname=RDMM
### Domain & URL Configuration ###
rdp.site.host=https://register.rare-diseases-catalyst-network.ca
rdp.site.context=
rdp.site.mainsite=https://www.rare-diseases-catalyst-network.ca/
### Emails ###
# This email will be displayed on the contact page and in email footers
rdp.site.contact-email=registry-help@rare-diseases-catalyst-network.ca
# Outgoing emails will be sent from this address
rdp.site.admin-email=registry-help@rare-diseases-catalyst-network.ca
### Google Analytics ###
rdp.site.ga-tracker=
# ==============================================================
# = FAQ
# ==============================================================
# Location of faq.properties file containing the Q&A
rdp.settings.faq-file=classpath:faq.properties
# ==============================================================
# = Privacy and international search
# ==============================================================
## whether the public search webpage will be shown (the root URL for the registry).
## If "false" is selected, the root URL we go directly to login/register page.
rdp.settings.privacy.public-search=true
## Whether logged in users will be able to access the Search tab and thus perform searches of shared and public data.
rdp.settings.privacy.registered-search=true
## Default Data Privacy Level. New users will have this option selected. 0 = private, 1 = shared with registered users, 2 = public
## Note that this setting must be among enabled-levels and greater or equal to min-level
rdp.settings.privacy.default-level=0
## Minimum allowed Data Privacy Level. Options lower than this level will not be shown in the user’s Profile.
## This option is deprecated in favour of enabled-levels defined below
rdp.settings.privacy.min-level=0
##h Enabled privacy levels. At least one value must be provided.
rdp.settings.privacy.enabled-levels=PUBLIC,SHARED,PRIVATE
## Enabled privacy levels for individual genes. If gene-level are customizable (see rdp.settings.privacy.customizable-gene-level),
# at least one value must be provided. Levels that are not defined in the enabled privacy levels above will be ignored.
rdp.settings.privacy.enabled-gene-levels=PUBLIC,SHARED,PRIVATE
## Default setting for partner registries sharing. If true, new users will have the sharing setting enabled by default.
rdp.settings.privacy.default-sharing=false
## Determines if users are allowed to change their privacy settings. If "false" the Data Privacy Settings section in the Profile will not be displayed.
rdp.settings.privacy.customizable-level=false
## Determines if users are allowed to change their gene-level privacy settings.
rdp.settings.privacy.customizable-gene-level=false
## Determines if users are allowed to change their partner registries sharing setting. If "false" the "Share data with partner registries" section in the Profile will not be displayed.
rdp.settings.privacy.customizable-sharing=false
## Allows users to hide their gene list (but still show their profile info) in search results when their data privacy level is 1 or 2. If "false" the option will no be displayed in the Profile.
rdp.settings.privacy.allow-hide-genelist=false
## Enable anonymized users and genes in search results
rdp.settings.privacy.enable-anonymized-search-results=true
# international search settings
## whether to enable international searching
rdp.settings.isearch.enabled=false
## whether international search is selected by default
rdp.settings.isearch.default-on=false
## urls of international instances to search when enabled. Separate with a comma
## You can specify a specific search token via 'auth' or disable the token using the 'noauth' query parameter. The
## default is to use the 'rdp.settings.isearch.search-token' defined below.
## For example: https://register.rare-diseases-catalyst-network.ca?auth=somerandomtoken or https://register.rare-diseases-catalyst-network.ca?noauth
rdp.settings.isearch.apis=
## Admin user id used for authenticated remote search. Not using 1 or 2 because those are IDs frequently used in tests. If changed, also update data.sql
rdp.settings.isearch.user-id=3
## Token used for remote search with administrative rights. Obtain from RDMM program coordinator.
rdp.settings.isearch.search-token=
## Tokens for remote requests that authorize administrative access. Usually equal to the search-token, but can contain multiple entries separated by comma.
rdp.settings.isearch.auth-tokens=
## Timeout in seconds for remote search so that slow partners have limited incidence on search result speed.
rdp.settings.isearch.request-timeout=3