Summary
The environment variables are defined in a local .env file for working in development mode and in dedicated places on the live/production site, depending on the deployment target (i.e. GitHub pages, Netlify). For example, when deploying with GitHub pages, the environment variables must be defined under the repository Secrets and variables/Actions section, when deploying with Netlify the environment variables must be defined under Deploy settings/Environment variables.
Variables
# General
DEPLOY_PROD_BASE_URL = <base url for live/production site, in this case https://docaroo.innohub.space>
DEPLOY_ENV = dev <!!!!should not be modified>
CONSOLE_BLANK_SPINNER_CHARS = <true/false, enable/disable the spinner shown for longer tasks when building the site>
# New Relic
NR_ENABLED = <true/false, enable/disable New Relic integration>
NR_BROWSER_ENABLED = true
NR_ACCOUNT_ID = <New Relic account ID, see New Relic documentation>
NR_BROWSER_APP_ID = <New Relic browser app ID, see New Relic documentation>
NR_BROWSER_APP_LICENSE_KEY = <New Relic browser app license key, see New Relic documentation>
NR_BROWSER_BEACON = <New Relic browser app beacon, see New Relic documentation>
# External content
JEKYLL_ACCESS_TOKEN = <GitHub personal access token to get content from private repositories>
JEKYLL_GIT_USER = <GitHub user corresponding to the personal access token>
# Algolia
ALGOLIA_SEARCH_ENABLED = <true/false, enable/disable Algolia DocSearch>
ALGOLIA_APP_ID = <Algolia DocSearch app ID, see Algolia documentation>
ALGOLIA_INDEX = <Algolia DocSearch index, see Algolia documentation>
ALGOLIA_WRITE_API_KEY = <Algolia DocSearch app write key, see Algolia documentation>
ALGOLIA_PUBLIC_API_KEY = <Algolia DocSearch read(public) key, see Algolia documentation>
ALGOLIA_CUSTOM_ENABLED = <true/false, enable/disable Algolia search>
ALGOLIA_CUSTOM_APP_ID = <Algolia search app ID, see Algolia documentation>
ALGOLIA_CUSTOM_INDEX = <Algolia search, see Algolia documentation>
ALGOLIA_CUSTOM_WRITE_API_KEY = <Algolia search app write key, see Algolia documentation>
ALGOLIA_CUSTOM_ADMIN_API_KEY = <Algolia DocSearch admin key, see Algolia documentation>
# Huggingface
HUGGINGFACE_KEY = <Huggingface access key>
Environment variables are used only at build time. At run time (in dev or production environments) the environment variables are not used anymore.
Purpose
Environment variables are mostly used to store values that should never be exposed, such as access keys and tokens that are used to integrate some external features and content. The external systems integrated with Docaroo ans using the environment variables are:
GitHub: to include external content from private repositories, at build and run timeNew Relic: to monitor the performance and for logging purposes (subject to extension hooks)Algolia: for search in site.Algolia DocSearchis fully supported and the full UI experience is provided;Algolia searchdoes not provide (yet) the UI experience, but the features of updating the index are provided.Huggingface: for accessing the open source models used to provide various features of Docaroo (such as auto summaries, PDF/DOCX summarisation, similar docs identification)
Only integrations using access keys/tokens are (partly) configured in the environment variables. The ones not needing such information are fully configured in the other config files.
On this page
