hivedav

A curlable free/busy scheduler with CalDAV integration
git clone https://git.in0rdr.ch/hivedav.git
Log | Files | Refs | Pull requests | README | LICENSE

commit af3aaebfff0d29adcfbfa51eee43238245c8be98
parent 1d83b87c7c96431236d6c51ede2908dd0e30030b
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Wed, 27 Sep 2023 02:39:53 +0200

fix(config): read hivedav host from env

Diffstat:
Mconfig/config.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/config/config.go b/config/config.go @@ -57,6 +57,9 @@ func (c *Config) LoadConfig(path string) (*Config, error) { viper.AutomaticEnv() // override config file vars with vars from environment + if viper.IsSet("HIVEDAV_HOST") { + c.HiveDavHost = viper.GetString("HIVEDAV_HOST") + } if viper.IsSet("LISTEN_ADDRESS") { c.ListenAddress = viper.GetString("LISTEN_ADDRESS") }