mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 17:00:57 -06:00
Merge pull request #4998 from wkloucek/fix-notifications-ocis-url
add NOTIFICATIONS_WEB_UI_URL
This commit is contained in:
7
changelog/unreleased/fix-notifications-web-ui-url.md
Normal file
7
changelog/unreleased/fix-notifications-web-ui-url.md
Normal file
@@ -0,0 +1,7 @@
|
||||
Bugfix: Fix notifications Web UI url
|
||||
|
||||
We've fixed the configuration of the notification service's Web UI url that appears in emails.
|
||||
|
||||
Previously it was only configurable via the global "OCIS_URL" and is now also configurable via "NOTIFICATIONS_WEB_UI_URL".
|
||||
|
||||
https://github.com/owncloud/ocis/pull/4998
|
||||
@@ -91,7 +91,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
logger.Fatal().Err(err).Str("addr", cfg.Notifications.RevaGateway).Msg("could not get reva client")
|
||||
}
|
||||
|
||||
svc := service.NewEventsNotifier(evts, channel, logger, gwclient, cfg.Notifications.MachineAuthAPIKey, cfg.Notifications.EmailTemplatePath, cfg.Commons.OcisURL)
|
||||
svc := service.NewEventsNotifier(evts, channel, logger, gwclient, cfg.Notifications.MachineAuthAPIKey, cfg.Notifications.EmailTemplatePath, cfg.WebUIURL)
|
||||
return svc.Run()
|
||||
},
|
||||
}
|
||||
|
||||
@@ -15,6 +15,8 @@ type Config struct {
|
||||
Log *Log `yaml:"log"`
|
||||
Debug Debug `yaml:"debug"`
|
||||
|
||||
WebUIURL string `yaml:"ocis_url" env:"OCIS_URL;NOTIFICATIONS_WEB_UI_URL" desc:"The public facing URL of the oCIS Web UI, used e.g. when sending notification eMails"`
|
||||
|
||||
Notifications Notifications `yaml:"notifications"`
|
||||
|
||||
Context context.Context `yaml:"-"`
|
||||
|
||||
@@ -23,6 +23,7 @@ func DefaultConfig() *config.Config {
|
||||
Service: config.Service{
|
||||
Name: "notifications",
|
||||
},
|
||||
WebUIURL: "https://localhost:9200",
|
||||
Notifications: config.Notifications{
|
||||
SMTP: config.SMTP{
|
||||
Host: "",
|
||||
|
||||
Reference in New Issue
Block a user