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 6f713538a12534808712c27f64d54597d680e5c2
parent af3aaebfff0d29adcfbfa51eee43238245c8be98
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Wed, 27 Sep 2023 02:50:26 +0200

fix(config): set default smtp port

Diffstat:
MREADME.md | 3++-
Mconfig/config.go | 1+
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -52,6 +52,7 @@ The application is configurable through environment variables or the #HIVEDAV_CALENDAR=0 #HIVEDAV_BOOKING_SUBJ="HiveDAV Booking" #HIVEDAV_BOOKING_REMINDER=15 +#HIVEDAV_SMTP_PORT=587 # Required HIVEDAV_HOST=hivedav.example.com @@ -59,7 +60,7 @@ HIVEDAV_CALDAV_URI= HIVEDAV_CALDAV_USER= HIVEDAV_CALDAV_PASSWORD= HIVEDAV_REFRESH_INTERVAL=30 -HIVEDAV_SMTP_SERVER= +HIVEDAV_SMTP_HOST= HIVEDAV_SMTP_USER= HIVEDAV_SMTP_PASSWORD= ``` diff --git a/config/config.go b/config/config.go @@ -39,6 +39,7 @@ func (c *Config) LoadConfig(path string) (*Config, error) { viper.SetDefault("HIVEDAV_BOOKING_SUMMARY", "HiveDAV Booking") viper.SetDefault("HIVEDAV_BOOKING_LOCATION", "https://meet.jit.si") viper.SetDefault("HIVEDAV_BOOKING_REMINDER", 15) + viper.SetDefault("HIVEDAV_SMTP_PORT", 587) err := viper.ReadInConfig() if err != nil {