diff --git a/example.config.json b/example.config.json index 86c5885..9daabbf 100644 --- a/example.config.json +++ b/example.config.json @@ -1,3 +1,6 @@ { - "caldav_url:": "https://mx.example.com" + "caldav_url:": "https://mx.example.com", + "oauth_enabled": true, + "oauth_issuer": "https://sso.example.com/application/o/stalwart/", + "oauth_clientid": "stalwart-webui" } diff --git a/main/config.go b/main/config.go index 0bcd479..30a15f3 100644 --- a/main/config.go +++ b/main/config.go @@ -7,7 +7,10 @@ import ( ) type Config struct { - URL string `json:"caldav_url"` + URL string `json:"caldav_url"` + OAuthEnabled bool `json:"oauth_enabled"` + OAuthIssuer string `json:"oauth_issuer"` + OAuthClientID string `json:"oauth_clientid"` } var serverConfig Config