-
Notifications
You must be signed in to change notification settings - Fork 23
/
config-defaults.edn
302 lines (260 loc) · 12.6 KB
/
config-defaults.edn
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
;; This file contains the default values of all config options supported by REMS.
;; Details of the the config options are also documented here.
;; REMS will log a warning if you use a config option not listed in this file.
;; See docs/configuration.md for more info.
{;; HTTP server port.
:port 3000
;; Url for this REMS installation. Should end with a /.
;; Used for generating links in emails, in OpenId authentication (:oidc),
;; and in the `iss` and `source` of generated GA4GH visas (see /api/permissions).
:public-url nil
;; When :nrepl-port is set, the application starts an nREPL server on load.
:nrepl-port nil
;; When true, enables experimental and unfinished features.
:dev false
;; Uses :database-url if it's defined. Otherwise :database-jndi-name is used.
:database-url nil
:database-jndi-name "java:comp/env/jdbc/rems"
;; Value for PostgreSQL lock_timeout
:database-lock-timeout "10s"
;; Value for PostgreSQL idle_in_transaction_session_timeout
:database-idle-in-transaction-session-timeout "20s"
;; Path to a writable directory where to store the Lucene search index files.
:search-index-path "search-index"
;; Supported authentication methods: :oidc, :fake
:authentication :fake
;; Log additional details about (OIDC) authentication. May leak secrets in the log, but useful for debugging.
:log-authentication-details false
;; Show link to an alternative login service
:alternative-login-url nil
;; For :oidc authentication
;; DEPRECATED, prefer :oidc-metadata-url instead
:oidc-domain nil
;; URL to OAuth Server Metadata metadata JSON, e.g.
;; :oidc-metadata-url "https://my.oidc.service/.well-known/openid-configuration"
:oidc-metadata-url nil
:oidc-client-id nil
:oidc-client-secret nil
;; Which scopes to pass to the authorization endpoint
:oidc-scopes "openid profile email"
;; Which id-token attribute to use as the rems userid. Can be either
;; single attribute or ["multiple" "attributes"] that are searched in
;; order and the first non-empty one used.
:oidc-userid-attribute "sub"
;; Additional query parameters to add to the OIDC authorization_endpoint url when logging in
;; Example:
;; :oidc-additional-authorization-parameters "&acr_values=foo&ui_locales=sv"
:oidc-additional-authorization-parameters nil
;; List of additional attributes to read from OIDC claims. Each attribute can have keys:
;; :attribute (mandatory) - the name of the attribute as in the OIDC claim, a string
;; :name (optional) - a map with languages as keys and the localized name for the attribute as values
;;
;; Example:
;;
;; :oidc-extra-attributes [{:attribute "groups"
;; :name {:en "Groups" :fi "Ryhmät"}}
;; {:attribute "employeeNumber"}]
:oidc-extra-attributes []
;; Sending email.
:smtp-host nil
:smtp-port 25
:mail-from nil
:email-retry-period "P3D" ;; in ISO 8601 duration format https://en.wikipedia.org/wiki/ISO_8601#Durations
;; URLs to notify about granted and revoked entitlements.
:entitlements-target {:add nil
:remove nil
:ga4gh nil} ;; Url where entitlements are pushed in ga4gh format, see https://github.com/ga4gh-duri/ga4gh-duri.github.io/
;; Default length for entitlements, in days. This only affects the UI of the approve command.
;; The default, nil, means indefinite entitlements.
:entitlement-default-length-days nil
;; URLs to notify about new events. An array of targets. Targets can have keys:
;; :url (mandatory) - the url to send HTTP PUT requests to
;; :event-types (optional) - an array of event types to send. A missing value means "send everything".
;; :timeout (optional) - timeout for the PUT in seconds. Defaults to 60s.
;; :headers (optional) - a map of additional HTTP headers to send.
;;
;; See also: docs/event-notification.md
;;
;; Example:
;;
;; :event-notification-targets [{:url "http://events/everything"}
;; {:url "http://events/filtered"
;; :event-types [:application.event/created :application.event/submitted]
;; :timeout 120
;; :headers {"Authorization" "abc123"
;; "X-Header" "value"}}]
:event-notification-targets []
;; Which database column to show as the application id.
;; Options: :id, :external-id, :generated-and-assigned-external-id
:application-id-column :external-id
;; List of supported languages. They will be selectable in the UI.
:languages [:en :fi]
:default-language :en
;; Path to a directory with translations for additional languages.
:translations-directory "translations/"
;; Path to an external theme file to override variables in :theme.
;; Will automatically set :theme-static-resources to a 'public' directory
;; next to the theme file.
:theme-path nil
;; Optional static resources directory for theme files.
:theme-static-resources nil
;; UI theme variables.
:theme {:color1 "#eee"
:color2 "#999"
:color3 "#000"
:color4 "#000"
;; Images & logos
:img-path "../../img/" ; Path for static images, relative to /css/<lang>/screen.css
:logo-name nil ; Big logo, used on home page. Also used on other pages if :navbar-logo-name is not set.
:logo-name-en nil ; Localized big logo, defaults to :logo-name
:logo-name-sm nil ; Small version of big logo, used in mobile mode.
:logo-name-en-sm nil ; Localized small version of big logo, defaults to :logo-name-sm
:navbar-logo-name nil ; Small logo for navbar. Used on non-home pages instead of :logo-name.
:navbar-logo-name-en nil ; Localized small logo for navbar, defaults to :navbar-logo-name
:logo-bgcolor nil
:logo-content-origin nil
;; Phases
:phase-bgcolor "#eee"
:phase-color "#111"
:phase-bgcolor-active "#ccc"
:phase-color-active nil ; defaults to :phase-color
:phase-bgcolor-completed "#ccc"
:phase-color-completed nil ; defaults to :phase-color
;; Navbar
:button-navbar-font-weight 700
:navbar-color "#111" ; color of text in navbar
:nav-color nil ; color of links on navbar, defaults to :link-color
:nav-active-color nil ; defaults to :color4
:nav-hover-color nil ; defaults to :color4
:big-navbar-text-transform "none" ; can be used to e.g. uppercase the navbar text
;; Tables
:table-hover-color nil ; defaults to :table-text-color
:table-hover-bgcolor nil ; defaults to :color2
:table-bgcolor nil ; defaults to :color1
:table-shadow nil
:table-border "1px solid #ccc"
:table-heading-color "#fff"
:table-heading-bgcolor nil ; defaults to :color3
:table-selection-bgcolor nil ; defaults to a darkened :table-hover-bgcolor, :table-bgcolor or :color3
:table-text-color nil ; defaults to bootstrap colors
:table-stripe-color nil ; background for every second table row, defaults to :color1
;; Text
:header-border "3px solid #ccc"
:header-shadow nil ; defaults to :table-shadow
:link-color "#025b96"
:link-hover-color nil ; defaults to color4
:font-family "'Lato', sans-serif"
;; Text colors:
:text-primary nil
:bg-primary nil
:text-secondary nil
:bg-secondary nil
:text-success nil
:bg-success nil
:text-danger nil
:bg-danger nil
:text-warning "#ffc107!important"
:bg-warning nil
:text-info nil
:bg-info nil
:text-light nil
:bg-light nil
:text-dark nil
:bg-dark nil
:text-white nil
:bg-white nil
:text-muted nil
;; Alerts
:alert-primary-color nil ; defaults to bootstrap colors
:alert-primary-bgcolor nil ; defaults to bootstrap colors
:alert-primary-bordercolor nil ; defaults to :alert-primary-color
:alert-secondary-color nil ; defaults to bootstrap colors
:alert-secondary-bgcolor nil ; defaults to bootstrap colors
:alert-secondary-bordercolor nil ; defaults to :alert-secondary-color
:alert-success-color nil ; defaults to bootstrap colors
:alert-success-bgcolor nil ; defaults to bootstrap colors
:alert-success-bordercolor nil ; defaults to :alert-success-color
:alert-danger-color nil ; defaults to bootstrap colors
:alert-danger-bgcolor nil ; defaults to bootstrap colors
:alert-danger-bordercolor nil ; defaults to :alert-danger-color
:alert-warning-color nil ; defaults to bootstrap colors
:alert-warning-bgcolor nil ; defaults to bootstrap colors
:alert-warning-bordercolor nil ; defaults to :alert-warning-color
:alert-info-color nil ; defaults to bootstrap colors
:alert-info-bgcolor nil ; defaults to bootstrap colors
:alert-info-bordercolor nil ; defaults to :alert-info-color
:alert-light-color nil ; defaults to bootstrap colors
:alert-light-bgcolor nil ; defaults to bootstrap colors
:alert-light-bordercolor nil ; defaults to :alert-light-color
:alert-dark-color nil ; defaults to bootstrap colors
:alert-dark-bgcolor nil ; defaults to bootstrap colors
:alert-dark-bordercolor nil ; defaults to :alert-dark-color
;; Buttons
:primary-button-color "#fff"
:primary-button-bgcolor nil ; defaults to :color4
:primary-button-hover-color nil ; defaults to :primary-button-color
:primary-button-hover-bgcolor nil ; defaults to :primary-button-bgcolor
:secondary-button-color nil ; defaults to bootstrap colors
:secondary-button-bgcolor nil ; defaults to bootstrap colors
:secondary-button-hover-color nil ; defaults to bootstrap colors
:secondary-button-hover-bgcolor nil ; defaults to bootstrap colors
;; Misc
:footer-color nil ; defaults to :table-heading-color
:footer-bgcolor nil ; defaults to :table-heading-bgcolor or color3
:collapse-shadow nil ; defaults to :table-shadow
:collapse-bgcolor "#fff"
:collapse-color "#fff"}
;; Optional extra static resources directory.
:extra-static-resources nil
;; Optional extra script files loaded when UI loads
:extra-scripts {:root "/dev/null" :files []}
;; Optional extra pages shown in the navigation bar.
;;
;; Example: define two pages
;;
;; :extra-pages [;; This is a page that's hosted at an external URL
;; {:id "hello"
;; :url "http://example.org/hello.html"
;; :translations {:fi {:title "Hei"}
;; :en {:title "Hello"}}}
;; ;; This is a page that's a markdown file, localized into two languages.
;; ;; The files are searched under :extra-pages-path (see below).
;; {:id "about"
;; :translations {:fi {:title "Info"
;; :file "about-fi.md"}
;; :en {:title "About"
;; :file "about-en.md"}}}]
:extra-pages []
;; Path to the markdown files for the extra pages.
:extra-pages-path nil
;; The character used as the separator in csv files.
:csv-separator ","
;; Optional, the number of days until the deadline for making a decision
;; on an application, starting from the first submission.
:application-deadline-days nil
;; List of commands to disable. See the swagger model of
;; /api/applications/{application-id} field application/permissions
;; for all possible values.
;;
;; Example:
;; :disable-commands [:application.command/assign-external-id :application.command/change-resources]
:disable-commands []
;; Show "Assign external id" action button in UI for handlers
:enable-assign-external-id-ui false
;; Experimental features
;; enable /api/applications/:id/experimental/pdf
:enable-pdf-api false
;; enable /api/permissions/:user
;; see also docs/ga4gh-visas.md
:enable-permissions-api false
;; Keys for signing GA4GH Visas produced by permissions api.
;; Format: path to file containing key in JWK (Json Web Key) format
:ga4gh-visa-private-key nil
:ga4gh-visa-public-key nil
;; Should the catalogue be public and visible to everyone, i.e. also to not logged-in users.
:catalogue-is-public false
;; Options used only for development
:render-css-file? false
:test-database-url nil
:accessibility-report false ; should the axe accessibility tooling be included?
:enable-ega false} ; should the EGA features be shown in the UI