@@ -132,16 +132,31 @@ default configuration.
132
132
service.host.name =${DM_SERVICE_HOST:localhost}
133
133
service.host.protocol =${DM_HOST_PROTOCOL:https}
134
134
service.host.port =${DM_SERVICE_PORT:-1}
135
-
136
135
# route for mail confirmation consumption
137
136
email-confirmation-endpoint =${EMAIL_CONFIRMATION_ENDPOINT:login}
138
137
email-confirmation-parameter =${EMAIL_CONFIRMATION_PARAMETER:confirm-email}
139
-
140
138
# route for password reset
141
139
password-reset-endpoint =${PASSWORD_RESET_ENDPOINT:new-password}
142
140
password-reset-parameter =${PASSWORD_RESET_PARAMETER:user-id}
143
141
```
144
142
143
+ Since the application will retrieve experimental design values from a list of defined vocabularies
144
+ a connection to the datasource containing this information is necessary:
145
+
146
+ | environment variable | description |
147
+ | ------------------------------| ------------------------------------------|
148
+ | ` OPENBIS_DATASOURCE_URL ` | The vocabulary database host API address |
149
+ | ` OPENBIS_USER_NAME ` | The vocabulary database user name |
150
+ | ` OPENBIS_USER_PASSWORD ` | The vocabulary database password |
151
+
152
+ The application properties file could look like the following:
153
+
154
+ ``` properties
155
+ openbis.user.name =${OPENBIS_USER_NAME:openbis-username}
156
+ openbis.user.password =${OPENBIS_USER_PASSWORD:openbis-password}
157
+ openbis.datasource.url =${OPENBIS_DATASOURCE_URL:openbis-url}
158
+ ```
159
+
145
160
#### Properties
146
161
147
162
The environment variables can either be set in the runtime configuration of your IDE or directly in
@@ -162,26 +177,26 @@ spring.datasource.driver-class-name=${USER_DB_DRIVER:com.mysql.cj.jdbc.Driver}
162
177
spring.datasource.username =${USER_DB_USER_NAME:myusername}
163
178
spring.datasource.password =${USER_DB_USER_PW:astrongpassphrase!}
164
179
spring.jpa.hibernate.ddl-auto =update
165
-
166
180
# mail configuration
167
181
spring.mail.username =${MAIL_USERNAME}
168
182
spring.mail.password =${MAIL_PASSWORD}
169
183
spring.mail.host =${MAIL_HOST:smtp.gmail.com}
170
184
spring.mail.default-encoding =UTF-8
171
185
spring.mail.port =${MAIL_PORT:587}
172
-
173
186
# global service route configuration for mail interaction requests
174
187
service.host.name =${DM_SERVICE_HOST:localhost}
175
188
service.host.protocol =${DM_HOST_PROTOCOL:https}
176
189
service.host.port =${DM_SERVICE_PORT:-1}
177
-
178
190
# route for mail confirmation consumption
179
191
email-confirmation-endpoint =${EMAIL_CONFIRMATION_ENDPOINT:login}
180
192
email-confirmation-parameter =${EMAIL_CONFIRMATION_PARAMETER:confirm-email}
181
-
182
193
# route for password reset
183
194
password-reset-endpoint =${PASSWORD_RESET_ENDPOINT:new-password}
184
195
password-reset-parameter =${PASSWORD_RESET_PARAMETER:user-id}
196
+ # openbis-client credentials
197
+ openbis.user.name =${OPENBIS_USER_NAME:openbis-username}
198
+ openbis.user.password =${OPENBIS_USER_PASSWORD:openbis-password}
199
+ openbis.datasource.url =${OPENBIS_DATASOURCE_URL:openbis-url}
185
200
186
201
```
187
202
0 commit comments