mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-13 15:20:53 +00:00
[Feature] Override global settings (#9718)
* Provide mechanism for config to override global settings * Ensure overrides are observed on save * Refactor * Add "read_only" field to serializer * Prevent editing for read_only settings * Bump API version * Update docs * Secure logs * Override applies to default_value * override get_setting method * Add unit test * Utilize new approach to override SITE_URL * Docs updates * Docs tweaks * Shortcut for get_global_setting * Remove previous change - Allow validation to be performed within the InvenTreeSetting class * Override INVENTREE_BASE_URL setting * Handle error on worker boot * Tweak unit test
This commit is contained in:
@@ -244,3 +244,11 @@ Refer to the [return order settings](../sales/return_order.md#return-order-setti
|
||||
### Project Codes
|
||||
|
||||
Refer to the [project code settings](../concepts/project_codes.md).
|
||||
|
||||
## Override Global Settings
|
||||
|
||||
If desired, specific *global settings* can be overridden via environment variables or the configuration file.
|
||||
|
||||
Overriding a global setting will mark the setting as "read-only" in the user interface, and prevent it from being changed by user action. Additionally, the associated value stored in the database will be set to the value specified in the override.
|
||||
|
||||
Refer to the [configuration guide](../start/config.md#override-global-settings) for more information on how to override global settings.
|
||||
|
Reference in New Issue
Block a user