Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1005 B
Raw Blame

SFS Attachment Backfill Utility

This binary is used to find and upload relevant email attachments for a given user account to SFS. It fetches attachment metadata from the local database, downloads the actual attachment data from Gmail, and uploads it to SFS.

Required Environment Variables:

  • DATABASE_URL: The connection string for the PostgreSQL database.
  • SFS_URL: The URL for the Static File Service.
  • INTERNAL_AUTH_KEY: The access token for authenticating with internal Macro services.
  • MACRO_IDS: The Macro IDs of the user accounts to backfill attachments for
  • UPLOAD_CONCURRENCY: Number of concurrent uploads to process (optional, defaults to 10).
  • FUSIONAUTH_API_KEY: The API key for authenticating with FusionAuth.
  • FUSIONAUTH_BASE_URL: The base URL for the FusionAuth service.
  • FUSIONAUTH_IDENTITY_PROVIDER_ID: The identity provider ID for FusionAuth.
  • GMAIL_CLIENT_ID: The client ID for Gmail OAuth.
  • GMAIL_CLIENT_SECRET: The client secret for Gmail OAuth.