Skip to content

Commit

Permalink
Merge pull request nyaruka#430 from nyaruka/cloud--api-wa
Browse files Browse the repository at this point in the history
Cloud API WA
  • Loading branch information
rowanseymour authored May 26, 2022
2 parents 6375059 + aab4afa commit 4cec783
Show file tree
Hide file tree
Showing 17 changed files with 1,699 additions and 40 deletions.
43 changes: 23 additions & 20 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ type Config struct {
LogLevel string `help:"the logging level courier should use"`
Version string `help:"the version that will be used in request and response headers"`

WhatsappAdminSystemUserToken string `help:"the token of the admin system user for WhatsApp"`

// IncludeChannels is the list of channels to enable, empty means include all
IncludeChannels []string

Expand All @@ -40,26 +42,27 @@ type Config struct {
// NewConfig returns a new default configuration object
func NewConfig() *Config {
return &Config{
Backend: "rapidpro",
Domain: "localhost",
Address: "",
Port: 8080,
DB: "postgres://temba:temba@localhost/temba?sslmode=disable",
Redis: "redis://localhost:6379/15",
SpoolDir: "/var/spool/courier",
S3Endpoint: "https://s3.amazonaws.com",
S3Region: "us-east-1",
S3MediaBucket: "courier-media",
S3MediaPrefix: "/media/",
S3DisableSSL: false,
S3ForcePathStyle: false,
AWSAccessKeyID: "",
AWSSecretAccessKey: "",
FacebookApplicationSecret: "missing_facebook_app_secret",
FacebookWebhookSecret: "missing_facebook_webhook_secret",
MaxWorkers: 32,
LogLevel: "error",
Version: "Dev",
Backend: "rapidpro",
Domain: "localhost",
Address: "",
Port: 8080,
DB: "postgres://temba:temba@localhost/temba?sslmode=disable",
Redis: "redis://localhost:6379/15",
SpoolDir: "/var/spool/courier",
S3Endpoint: "https://s3.amazonaws.com",
S3Region: "us-east-1",
S3MediaBucket: "courier-media",
S3MediaPrefix: "/media/",
S3DisableSSL: false,
S3ForcePathStyle: false,
AWSAccessKeyID: "",
AWSSecretAccessKey: "",
FacebookApplicationSecret: "missing_facebook_app_secret",
FacebookWebhookSecret: "missing_facebook_webhook_secret",
WhatsappAdminSystemUserToken: "missing_whatsapp_admin_system_user_token",
MaxWorkers: 32,
LogLevel: "error",
Version: "Dev",
}
}

Expand Down
Loading

0 comments on commit 4cec783

Please sign in to comment.