Skip to content

Commit

Permalink
Updated changelog and example
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Jun 7, 2023
1 parent 0f8ece2 commit 1d27a97
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
5 changes: 3 additions & 2 deletions changelog/unreleased/def-invite-link.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Enhancement: Remove redundant config for invite_link_template

This is to drop invite_link_template from the OCM-related config.
The link template is still defined in a constant but not exposed
in the config, as it depends on Mentix and should not be changed.
Now the provider_domain and mesh_directory_url config options
are both mandatory in the sciencemesh http service, and the link
is directly built out of the context.

https://github.com/cs3org/reva/pull/3905
13 changes: 13 additions & 0 deletions examples/storage-references/gateway.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,16 @@ mime_types = [
[http.services.ocdav]
[http.services.ocs]
[http.services.appprovider]

[http.services.sciencemesh]
mesh_directory_url = 'https://sciencemesh.cesnet.cz/iop/meshdir'
provider_domain = 'your-domain.org'
body_template_path = '/etc/revad/sciencemesh_email_body'
ocm_mount_point = '/sciencemesh'

[http.services.sciencemesh.smtp_credentials]
disable_auth = true
sender_mail = "sciencemesh@your-domain.org"
smtp_server = "your-smtp-server.your-domain.org"
smtp_port = 25

5 changes: 4 additions & 1 deletion internal/http/services/sciencemesh/sciencemesh.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ func New(m map[string]interface{}, log *zerolog.Logger) (global.Service, error)

conf.init()
if conf.ProviderDomain == "" {
return nil, errors.New("provider_domain missing from configuration")
return nil, errors.New("sciencemesh: provider_domain is missing from configuration")
}
if conf.MeshDirectoryURL == "" {
return nil, errors.New("sciencemesh: mesh_directory_url is missing from configuration")
}

r := chi.NewRouter()
Expand Down

0 comments on commit 1d27a97

Please sign in to comment.