Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
;; 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