Skip to content

Commit

Permalink
Merge pull request #3695 from owncloud/notifications-config
Browse files Browse the repository at this point in the history
update notifications docs
  • Loading branch information
butonic authored May 5, 2022
2 parents ffb1365 + 9c120d0 commit 15f7c00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/extensions/notifications/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ geekdocCollapseSection: true

## Abstract

The notifications extension is responsible for making users aware of changes. It listens on the event bus, filters relevant events, looks up the recipients email address and then queues an email with an external MTA.

## Table of Contents

Expand Down
4 changes: 2 additions & 2 deletions extensions/notifications/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ type Notifications struct {
*shared.Commons `yaml:"-"`
SMTP SMTP `yaml:"SMTP"`
Events Events `yaml:"events"`
RevaGateway string `yaml:"reva_gateway" env:"REVA_GATEWAY;NOTIFICATIONS_REVA_GATEWAY"`
MachineAuthAPIKey string `yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY;NOTIFICATIONS_MACHINE_AUTH_API_KEY"`
RevaGateway string `yaml:"reva_gateway" env:"REVA_GATEWAY;NOTIFICATIONS_REVA_GATEWAY" desc:"CS3 gateway used to look up user metadata"`
MachineAuthAPIKey string `yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY;NOTIFICATIONS_MACHINE_AUTH_API_KEY" desc:"Machine auth API key used to impersonate users when looking up their email"`
}

// SMTP combines the smtp configuration options.
Expand Down
7 changes: 3 additions & 4 deletions extensions/notifications/pkg/config/defaults/defaultconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ func DefaultConfig() *config.Config {
},
Notifications: config.Notifications{
SMTP: config.SMTP{
Host: "127.0.0.1",
Port: "1025",
Sender: "god@example.com",
Password: "godisdead",
Host: "127.0.0.1",
Port: "1025",
Sender: "noreply@example.com",
},
Events: config.Events{
Endpoint: "127.0.0.1:9233",
Expand Down

0 comments on commit 15f7c00

Please sign in to comment.