mirror of
https://github.com/rustfs/rustfs.git
synced 2026-03-17 14:24:08 +00:00
730 B
730 B
Config Crate Instructions
Applies to crates/config/.
Environment Variable Naming
- Global configuration variables must use flat
RUSTFS_*names. - Do not introduce module-segmented names such as
RUSTFS_CONFIG_*.
Canonical examples:
RUSTFS_REGIONRUSTFS_ADDRESSRUSTFS_VOLUMESRUSTFS_LICENSERUSTFS_SCANNER_ENABLEDRUSTFS_HEAL_ENABLED
Compatibility
- Deprecated aliases must keep warning behavior.
- Document aliases in
crates/config/README.md. - Any alias change should include tests for both canonical and deprecated forms.
Source of Truth
- Constants:
crates/config/src/constants/app.rs - Naming conventions:
crates/config/README.md#environment-variable-naming-conventions