3. Configuration¶
- APP_CONNECT_TIMEOUT¶
Type:
int()Default:
30Number of seconds to wait for establishing a connection to a backend app.
- APP_READ_TIMEOUT¶
Type:
int()Default:
300Number of seconds to wait for a backend app to send a response.
- APPS¶
Type:
map()Default:
{}Backend applications where data can be fetched from.
- BABEL_DEFAULT_LOCALE¶
Type:
enum('da', 'de', 'en', 'it', 'nl')Default:
enLocale to be used by the application.
- BABEL_DEFAULT_TIMEZONE¶
Type:
str()Default:
UTCThe timezone to be used for user facing dates.
- BABEL_TRANSLATION_DIRECTORIES¶
Type:
path()Default:
/opt/mgrid/analytics/localeA semi-colon (;) separated string of absolute and relative (to the app root) paths to translation folders.
- BASE_URL¶
Type:
url()Default:
https://analytics.example.comBase URL for the application.
- CACHE_MAX_AGE¶
Type:
int()Default:
3600Maximum time in seconds that the browser should cache responses.
- CATEGORIES¶
Type:
map()Default:
{}Categories; key is slug, value is configuration.
- DASHBOARDS¶
Type:
map()Default:
{}Dashboards; key is slug, value is configuration.
- DB_HOST¶
Type:
str()Default:
override_meThe hostname of the application model database, e.g.
postgres.
- DB_NAME¶
Type:
str()Default:
override_meThe name of the application model database, e.g.
analytics.
- DB_PASSWORD¶
Type:
password()Default:
override_meThe password for the application model database, e.g.
secret.
- DB_PORT¶
Type:
int()Default:
5432The port number of the application model database, e.g.
5432.
- DB_SCHEMA¶
Type:
str()Default:
publicThe schema of the application model database, e.g.
public.
- DB_USER¶
Type:
str()Default:
override_meThe username for the application model database, e.g.
analytics.
- DEFAULT_PAGE¶
Type:
str()Default:
/dashboard/defaultDefault page the user sees when logging in.
- ENABLE_CREATE_WIDGETS¶
Type:
bool()Default:
FalseEnable creation of widgets by the user.
- FAVORITES¶
Type:
map()Default:
{'dashboards': [], 'tables': []}Favorites (in menu) for tables.
- FILTERS¶
Type:
map()Default:
{}Filters; key is slug, value is configuration.
- HOST¶
Type:
ip()Default:
127.0.0.1IP address the server binds to.
- JWT_CONTENT_ENCRYPTION_ALGORITHM¶
Type:
str()Default:
A256CBC-HS512Encryption algorithm used by JWT for the content.
- JWT_KEY_ENCRYPTION_ALGORITHM¶
Type:
str()Default:
A256KWEncryption algorithm used by JWT for the key.
- JWT_LEEWAY¶
Type:
int()Default:
10Leeway before and after the current time that the JWT token is valid.
- JWT_REUSE_FROM_OIDC_PROVIDER¶
Type:
bool()Default:
FalseInstead of creating own JWT for explorer API access, reuse the JWT from provider. If true the other
JWT_settings are ignored.
- JWT_SECRET_KEY¶
Type:
password()Default:
override_meSecret key for signing the JWT token.
- JWT_SUBJECT¶
Type:
str()Default:
system:platformSubject of the JWT token.
- LABELS¶
Type:
list(str())Default:
[]List of labels for searching in titles and descriptions.
- LOGGING_CONFIG_FILE¶
Type:
path()Default:
/etc/mgrid/analytics/logging.iniLocation of the logging configuration file.
- LOGO_LARGE¶
Type:
path()Default:
static/images/cgm-logo.pngLocation of the logo image used in the large menu.
- LOGO_SMALL¶
Type:
path()Default:
static/images/cgm-logo.pngLocation of the logo image used in the small menu.
- METRICS_PORT¶
Type:
int()Default:
8000IP port the metrics server binds to.
- OIDC_ACCESS_TOKEN_URL¶
Type:
url()Default:
https://analytics.example.com/oauth/tokenAccess token URL for OpenID Connect.
- OIDC_AUTHORIZE_URL¶
Type:
url()Default:
https://analytics.example.com/oauth/authorizeAuthorize URL for OpenID Connect.
- OIDC_BASE_URL¶
Type:
url()Default:
https://analytics.example.comBase URL for OpenID Connect.
- OIDC_CLIENT_AUTHENTICATION_METHOD¶
Type:
enum('client_secret_post', 'client_secret_basic')Default:
client_secret_postClient authentication method for OpenID Connect.
- OIDC_CLIENT_ID¶
Type:
str()Default:
override_meClient identifier for OpenID Connect.
- OIDC_CLIENT_SECRET¶
Type:
password()Default:
override_meClient secret for OpenID Connect.
- OIDC_LOGOUT_REDIRECT_URL¶
Type:
url()Default:
https://analytics.example.comRedirect URL after logging out with OpenID Connect.
- OIDC_NAME¶
Type:
str()Default:
override_meApplication name for OpenID Connect.
- OIDC_PROVIDER_DOMAINS¶
Type:
list(domain())Default:
['example.com']Provider domains for OpenID Connect.
- OIDC_REDIRECT_URL¶
Type:
url()Default:
https://analytics.example.comRedirect URL after logging in with OpenID Connect.
- OIDC_SCOPE¶
Type:
str()Default:
openid organization roles sessionScope for OpenID Connect.
- OIDC_USERINFO_URL¶
Type:
url()Default:
https://authprov.example.com/userinfoUserinfo URL for OpenID Connect.
- OIDC_USERINFO_PUBLICKEY¶
Type:
path()Default:
''Path to public key file of OpenID Connect userinfo signature (JWS).
- PAGE_TITLE¶
Type:
str()Default:
AnalyticsTitle of the application.
- PERMANENT_SESSION_LIFETIME¶
Type:
int()Default:
3600The cookie’s expiration will be set this number of seconds in the future.
- PLATFORM_DOMAIN¶
Type:
domain()Default:
example.comBase domain of the platform (e.g., common for Explorer and Dashboard).
- PORT¶
Type:
int()Default:
5000IP port the server binds to.
- SECRET_KEY¶
Type:
password()Default:
override_meThe secret key that is used to authenticate requests to the UI.
- SECURITY_DASHBOARD_MANAGEMENT_ROLES¶
Type:
list(str())Default:
[]List of roles that grant dashboard management abilities.
- SECURITY_GROUP_MANAGEMENT_ROLES¶
Type:
list(str())Default:
[]List of roles that grant group management abilities.
- SESSION_COOKIE_HTTPONLY¶
Type:
bool()Default:
True# Enable or disable hiding cookie from JavaScript by setting the HttpOnly flag. # Not honored by all browsers.
- SESSION_COOKIE_NAME¶
Type:
str()Default:
__Host-analytics-sessionName of the session cookie.
- SESSION_COOKIE_PATH¶
Type:
str()Default:
/The path that the session cookie will be valid for.
- SESSION_COOKIE_SAMESITE¶
Type:
enum('None', 'Lax', 'Strict')Default:
LaxRestricts how cookies are sent with requests from external sites.
- SESSION_COOKIE_SECURE¶
Type:
bool()Default:
TrueEnable or disable sending the cookie only over a secure connection.
- SESSION_FILE_DIR¶
Type:
path()Default:
/tmp/flask_sessionThe directory where session files are stored.
- SESSION_PERMANENT¶
Type:
bool()Default:
FalseEnable or disable permanent sessions.
- SESSION_TYPE¶
Type:
enum('null', 'cachelib', 'filesystem', 'sqlalchemy')Default:
cachelibSpecifies which type of session interface to use.
- SHARED_VALUES¶
Type:
map()Default:
{}Values to be shared by configuration items such as dashboards, filters and widgets.
- SQLALCHEMY_ENGINE_OPTIONS¶
Type:
map()Default:
{'pool_pre_ping': True, 'pool_size': 1}A dictionary that can contain options for the model database engine, most notably to change the connection pool characteristics.
- SQLALCHEMY_TRACK_MODIFICATIONS¶
Type:
bool()Default:
FalseIf set to True, modifications to the model database objects will be tracked. This requires extra memory and should be disabled if not needed.
- SSL_VERIFY¶
Type:
bool()Default:
TrueEnable or disable SSL verification.
- TABLE_ACTION_FUNCTION_INVITE¶
Type:
any(null(), str())Default:
NoneName of the JavaScript function that is called when the user wants to invite all patients in the table.
- TABLE_ACTION_FUNCTION_ROW¶
Type:
any(null(), str())Default:
NoneName of the JavaScript function that is called when the user clicks a row in the table.
- TABLE_ACTION_REFERRER_BASE_URL¶
Type:
any(null(), url())Default:
NoneBase URL of the referrer that is sent as payload when the user clicks on a row in the table. When not set, the BASE_URL is used.
- TABLE_ACTION_SOURCE¶
Type:
str()Default:
CGM AnalyticsName of the caller of the Javascript functions.
- TRACE_DATABASE_CONNECTIONS¶
Type:
bool()Default:
FalseTrace database connections with filename where they were allocated – DEBUG ONLY. Connections are not pooled when this is enabled.
- WIDGETS¶
Type:
map()Default:
{}Widgets; key is slug, value is configuration.