2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-27 21:26:43 +00:00

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 <code@mjmair.com>

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
Philipp Fruck 2023-02-16 23:53:37 +00:00 committed by GitHub
parent 90d842d6f9
commit f06c7961b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,9 +164,9 @@ By default, all hosts are allowed, and CORS requests are enabled from any origin
| Environment Variable | Configuration File | Description | Default | | Environment Variable | Configuration File | Description | Default |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| *N/A* | allowed_hosts | List of allowed hosts | `*` | | INVENTREE_ALLOWED_HOSTS | allowed_hosts | List of allowed hosts | `*` |
| *N/A* | cors.allow_all | Allow all remote URLS for CORS checks | False | | INVENTREE_CORS_ORIGIN_ALLOW_ALL | cors.allow_all | Allow all remote URLS for CORS checks | False |
| *N/A* | cors.whitelist | List of whitelisted CORS URLs | *Empty list* | | INVENTREE_CORS_ORIGIN_WHITELIST | cors.whitelist | List of whitelisted CORS URLs | *Empty list* |
!!! info "Configuration File" !!! info "Configuration File"
Allowed hosts and CORS options must be changed in the configuration file, and cannot be set via environment variables Allowed hosts and CORS options must be changed in the configuration file, and cannot be set via environment variables