b57564ae
config: decouple file loading from crypto init
Now that the algorithm for loading the config is non-trivial, the code for it should be re-used everywhere. However, it is currently coupled with a call to `InitCrypto()`, which requires certain things like webhook keys to be configured. This is not suitable for many components that still need the configuration. This commit introduces `config.LoadFiles()` to do only the file loading. `LoadConfig()` uses it, and so can any components that do not care about crypto initialization.
Conrad Hoffmann <ch@bitfehler.net> — 2024-11-19 13:29:57 UTC
Commit b57564aeae0835c6526e7475a3262f894ade9d28 —
view raw patch
Parent(s):
5a81e2cb
| File | Status | + | − |
|---|---|---|---|
config/config.go
|
M | +24 | -17 |