Fix share/space link in notification mail

Use OCIS_URL as the link base. This change also makes sure that the
top-level OcisURL config value gets a default assigned, even when
OCIS_URL is unset.

Fixes: #4688
This commit is contained in:
Ralf Haferkamp
2022-09-29 16:26:21 +02:00
committed by Ralf Haferkamp
parent de1588843a
commit c6664cfe61
7 changed files with 31 additions and 11 deletions
+1
View File
@@ -35,6 +35,7 @@ import (
func DefaultConfig() *Config {
return &Config{
OcisURL: "https://localhost:9200",
Runtime: Runtime{
Port: "9250",
Host: "localhost",
+4
View File
@@ -124,6 +124,10 @@ func EnsureCommons(cfg *config.Config) {
if cfg.AdminUserID != "" {
cfg.Commons.AdminUserID = cfg.AdminUserID
}
if cfg.OcisURL != "" {
cfg.Commons.OcisURL = cfg.OcisURL
}
}
func Validate(cfg *config.Config) error {