Skip to content

Environment Variables

Claudio Bonesana edited this page Apr 5, 2023 · 2 revisions

Other than the standard Spring configuration environment variables, it is possible to configure some aspects of the tool.

Following a list of all the environment variables supported.

API Key configuration

  • MAGIC_API_KEY; set the first key for remote management.

Database configuration

  • DB_DBMS; set the database engine to use (default: postgres).

    Supported values are: postgres, mysql, memory (h2 database).

    Invalid parameters will fall back to keyword memory.

  • DB_HOSTNAME: url for the remote database (default: localhost).

  • DB_PORT: port for the remote database (default: 5432).

  • DB_SCHEMA: name of the remote database (default: adaptive).

  • DB_USERNAME: username for the remote database (default: ada).

  • DB_PASSWORD: password for the remote database (default: ada).

Context URL configuration

  • SERVER_SERVLET_CONTEXT-PATH: change the context path of the application (default: /).

Keycloak configuration

  • KEYCLOAK_ENABLED: If set to true use a Keycloak server for authentication (default: false).

  • KEYCLOAK_REALM: Realm to use for Keycloak authentication.

  • KEYCLOAK_AUTH_SERVER_URL: URL to use as authentication server.

  • KEYCLOAK_RESOURCE: Name of the client in the Keycloak environment.

  • KEYCLOAK_PRINCIPAL_ATTRIBUTE: Principal attribute to use (default: "preferred_username").

  • ADAPQUEST_KEYCLOAK_ROLE: Role to use for the standard user that will go through the survey (default: user).

  • ADAPQUEST_KEYCLOAK_ADMIN: Role to use for the administration option (default: admin).

Clone this wiki locally