Skip to content

Commit

Permalink
Add cloudwatch config variables
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Dec 13, 2024
1 parent 30e553d commit ce4f234
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ type Config struct {
S3AttachmentsBucket string `help:"S3 bucket to write attachments to"`
S3Minio bool `help:"S3 is actually Minio or other compatible service"`

CloudwatchNamespace string `help:"the namespace to use for cloudwatch metrics"`
DeploymentID string `help:"the deployment identifier to use for metrics"`

FacebookApplicationSecret string `help:"the Facebook app secret"`
FacebookWebhookSecret string `help:"the secret for Facebook webhook URL verification"`
WhatsappAdminSystemUserToken string `help:"the token of the admin system user for WhatsApp"`
Expand Down Expand Up @@ -84,6 +87,9 @@ func NewDefaultConfig() *Config {
FacebookWebhookSecret: "missing_facebook_webhook_secret",
WhatsappAdminSystemUserToken: "missing_whatsapp_admin_system_user_token",

CloudwatchNamespace: "Temba",
DeploymentID: "dev",

DisallowedNetworks: `127.0.0.1,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16,fe80::/10`,
MaxWorkers: 32,
LogLevel: slog.LevelWarn,
Expand Down

0 comments on commit ce4f234

Please sign in to comment.