diff options
| author | Clement Michaud <clement.michaud34@gmail.com> | 2019-12-07 17:40:42 +0100 |
|---|---|---|
| committer | Clément Michaud <clement.michaud34@gmail.com> | 2019-12-08 14:31:48 +0100 |
| commit | 3d20142292cb9894791b290496b292d760d70f0b (patch) | |
| tree | ef4888583cd0ac65b83f61eedf50567f0423121b /internal/configuration/schema/configuration.go | |
| parent | 3faa63e8ed0e3467d27a1319accbcaefe75b750d (diff) | |
Allow administrator to provide a Google Analytics tracking ID.
Providing a GA tracking ID allows administrators to analyze
how the portal is used by their users in large environments,
i.e., with many users.
This will make even more sense when we have users and admins
management interfaces.
Diffstat (limited to 'internal/configuration/schema/configuration.go')
| -rw-r--r-- | internal/configuration/schema/configuration.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/configuration/schema/configuration.go b/internal/configuration/schema/configuration.go index 3035fcc20..31e5119c4 100644 --- a/internal/configuration/schema/configuration.go +++ b/internal/configuration/schema/configuration.go @@ -2,10 +2,12 @@ package schema // Configuration object extracted from YAML configuration file. type Configuration struct { - Port int `yaml:"port"` - LogsLevel string `yaml:"logs_level"` - JWTSecret string `yaml:"jwt_secret"` - DefaultRedirectionURL string `yaml:"default_redirection_url"` + Port int `yaml:"port"` + LogsLevel string `yaml:"logs_level"` + JWTSecret string `yaml:"jwt_secret"` + DefaultRedirectionURL string `yaml:"default_redirection_url"` + GoogleAnalyticsTrackingID string `yaml:"google_analytics"` + AuthenticationBackend AuthenticationBackendConfiguration `yaml:"authentication_backend"` Session SessionConfiguration `yaml:"session"` |
