ccproxy.config.loader¶
ccproxy.config.loader
¶
Configuration file loader for ccproxy.
ConfigLoader
¶
Load configuration from multiple sources.
Source code in ccproxy/config/loader.py
load
¶
Load configuration from multiple sources.
Priority: ENV > config file > defaults
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config_file
|
Path | None
|
Optional path to config file |
None
|
Returns:
Type | Description |
---|---|
Settings
|
Settings instance with loaded configuration |
Raises:
Type | Description |
---|---|
ConfigurationError
|
If config file is invalid or cannot be loaded |