# Slack config slack: # 'token' is a bot token from a slack app. Create a slack app here # https://api.slack.com/apps then get the bot token from 'OAuth & Permissions' # Env: STATS_SLACK_TOKEN token: xoxb-12345125123457128357129-fake # Enable debug logging # Env: STATS_DEBUG debug: false # Mailgun Notification config mailgun: # Must be true for notification to work # Env: STATS_MG_ENABLED enabled: false # Use the Mailgun 'Private API key' found here # https://app.mailgun.com/app/account/security under 'Security' # Env: STATS_MG_API_KEY api-key: api-242109123109 # Name of verified domain you have registered with mailgun # Env: STATS_MG_DOMAIN domain: your-domain.com # The email address of the operator of the bot # Env: STATS_MG_OPERATOR_ADDR operator-address: operator@your-domain.com # The email address reports are sent to (Could be an mailing list address) # Env: STATS_MG_REPORT_ADDR report-address: my-name@your-domain.com # The from email address given when sending operator emails # Env: STATS_MG_FROM from: channel-stats@your-domain.com # Timeout for network operations when talking to mailgun # (See http://golang.org/pkg/time/#ParseDuration for string format) # Defaults to "20s" (20 Seconds) # Env: STATS_MG_TIMEOUT timeout: 20s # badger data config store: # Location of the database on disk, should be changed if you # wish to persist the data to a mounted directory # Env: STATS_STORE_DATA_DIR data-dir: ./badger-db # Size of the store internal cache # Env: STATS_STORE_CACHE_SIZE cache-size: 100 # Duration cached data will stay in the cache # Env: STATS_STORE_CACHE_TTL cache-ttl: 30s # Periodic report config report: # The cron like string the dictates when reports are sent to users # (See https://godoc.org/github.com/robfig/cron#hdr-CRON_Expression_Format) # Default is "0 0 0 * * SUN" - Run once a week, midnight on Sunday # Env: STATS_REPORT_SCHEDULE schedule: "0 0 0 * * SUN" # The duration used to decide the start and end hour of the report # (See http://golang.org/pkg/time/#ParseDuration for string format) # Defaults to "168h" aka 7 days # Env: STATS_REPORT_DURATION report-duration: 168h