From f06c7961b05eaf5d88a4d24e2b27ed06ec50a909 Mon Sep 17 00:00:00 2001 From: Philipp Fruck Date: Thu, 16 Feb 2023 23:53:37 +0000 Subject: [PATCH] Document environment variables used to configure CORS and allowed_hosts (#444) * add env vars to configure CORS and allowed_hosts Adds documentation for the environment variables introduced in https://github.com/inventree/InvenTree/pull/4355 * add whitespaces removed by autoformatter whitespaces are required to enforce markdown linebreaks Co-authored-by: Matthias Mair --------- Co-authored-by: Matthias Mair --- docs/start/config.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/start/config.md b/docs/start/config.md index 1761957..fecd0fe 100644 --- a/docs/start/config.md +++ b/docs/start/config.md @@ -164,9 +164,9 @@ By default, all hosts are allowed, and CORS requests are enabled from any origin | Environment Variable | Configuration File | Description | Default | | --- | --- | --- | --- | -| *N/A* | allowed_hosts | List of allowed hosts | `*` | -| *N/A* | cors.allow_all | Allow all remote URLS for CORS checks | False | -| *N/A* | cors.whitelist | List of whitelisted CORS URLs | *Empty list* | +| INVENTREE_ALLOWED_HOSTS | allowed_hosts | List of allowed hosts | `*` | +| INVENTREE_CORS_ORIGIN_ALLOW_ALL | cors.allow_all | Allow all remote URLS for CORS checks | False | +| INVENTREE_CORS_ORIGIN_WHITELIST | cors.whitelist | List of whitelisted CORS URLs | *Empty list* | !!! info "Configuration File" Allowed hosts and CORS options must be changed in the configuration file, and cannot be set via environment variables