From 0b5cea333fbf2cf27bb251fe73a69a206c0b9c19 Mon Sep 17 00:00:00 2001 From: Shaun Brown Date: Fri, 18 Mar 2022 11:36:46 +0100 Subject: [PATCH 1/3] Added APP_KEYS to environmental variables table + fixed spelling error --- .../configurations/optional/environment.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md b/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md index 2925c942ee..74200703f4 100644 --- a/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md +++ b/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md @@ -22,6 +22,7 @@ Strapi provides the following environment variables: | `ENV_PATH` | Path to the file that contains your environment variables | `String` | `'./.env'` | | `STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE`

_Optional_ | Initialization locale for the app, if the [Internationalization (i18n) plugin](/developer-docs/latest/plugins/i18n.md) is installed and enabled on Content-Types (see [Configuration of i18n in production environments](/developer-docs/latest/plugins/i18n.md#configuration-of-the-default-locale)) | `String` | `'en'` | | `API_TOKEN_SALT`

_Optional_ | Salt to use to generate [API tokens](/developer-docs/latest/setup-deployment-guides/configurations/optional/api-tokens.md) | `String` | - | +| `APP_KEYS` | static keys used by the session middleware | `String` | `undefined` ## Configuration using environment variables @@ -82,7 +83,7 @@ env.json('VAR', { key: 'value' }); // Cast to array (syntax: ENV_VAR=[value1, value2, value3] | ENV_VAR=["value1", "value2", "value3"]) env.array('VAR', [1, 2, 3]); -// Case to date (using new Date(value)) +// Cast to date (using new Date(value)) env.date('VAR', new Date()); ``` From b5849fec14dcefdb34774c8200ca945c591738a4 Mon Sep 17 00:00:00 2001 From: Shaun Brown Date: Fri, 18 Mar 2022 12:01:54 +0100 Subject: [PATCH 2/3] added link to middlewares documentation --- .../configurations/optional/environment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md b/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md index 74200703f4..9a26ad100b 100644 --- a/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md +++ b/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md @@ -22,7 +22,7 @@ Strapi provides the following environment variables: | `ENV_PATH` | Path to the file that contains your environment variables | `String` | `'./.env'` | | `STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE`

_Optional_ | Initialization locale for the app, if the [Internationalization (i18n) plugin](/developer-docs/latest/plugins/i18n.md) is installed and enabled on Content-Types (see [Configuration of i18n in production environments](/developer-docs/latest/plugins/i18n.md#configuration-of-the-default-locale)) | `String` | `'en'` | | `API_TOKEN_SALT`

_Optional_ | Salt to use to generate [API tokens](/developer-docs/latest/setup-deployment-guides/configurations/optional/api-tokens.md) | `String` | - | -| `APP_KEYS` | static keys used by the session middleware | `String` | `undefined` +| `APP_KEYS` | static keys used by the [session middleware](/developer-docs/latest/setup-deployment-guides/configurations/required/middlewares.md#internal-middlewares-configuration-reference) | `String` | `undefined` ## Configuration using environment variables From 5d5631560b6fc3f57206a39360be3cced454a6d7 Mon Sep 17 00:00:00 2001 From: Shaun Brown Date: Mon, 25 Apr 2022 10:10:29 +0200 Subject: [PATCH 3/3] remove API_TOKEN_SALT and APP_KEYS from env table --- .../configurations/optional/environment.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md b/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md index 9a26ad100b..8e70f66a61 100644 --- a/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md +++ b/docs/developer-docs/latest/setup-deployment-guides/configurations/optional/environment.md @@ -21,8 +21,6 @@ Strapi provides the following environment variables: | `BROWSER` | Open the admin panel in the browser after startup | `Boolean` | `true` | | `ENV_PATH` | Path to the file that contains your environment variables | `String` | `'./.env'` | | `STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE`

_Optional_ | Initialization locale for the app, if the [Internationalization (i18n) plugin](/developer-docs/latest/plugins/i18n.md) is installed and enabled on Content-Types (see [Configuration of i18n in production environments](/developer-docs/latest/plugins/i18n.md#configuration-of-the-default-locale)) | `String` | `'en'` | -| `API_TOKEN_SALT`

_Optional_ | Salt to use to generate [API tokens](/developer-docs/latest/setup-deployment-guides/configurations/optional/api-tokens.md) | `String` | - | -| `APP_KEYS` | static keys used by the [session middleware](/developer-docs/latest/setup-deployment-guides/configurations/required/middlewares.md#internal-middlewares-configuration-reference) | `String` | `undefined` ## Configuration using environment variables