Configuration
Every setting can be defined in sendcrate.yml (see sendcrate.example.yml in the repository) or supplied via environment variables. Environment variables always take precedence, and sendcrate.yml supports ${ENV_VAR} interpolation.
Reference table
Section titled “Reference table”| Environment variable | sendcrate.yml key |
Description |
|---|---|---|
SENDCRATE_DEPLOYMENT |
deployment |
self-hosted (default) or cloud. |
SENDCRATE_APP_URL |
app_url |
Origin where members sign in — keep private on self-hosted installs. |
SENDCRATE_SHARE_URL |
share_url |
Origin recipients see for /s/*, /d/*, and /drop/*. |
SENDCRATE_SECRET |
secret |
Signing secret (at least 32 characters) for sessions, access grants, SSO state, and webhooks. |
SENDCRATE_DEFAULT_DELIVERY |
sharing.default_delivery |
Default link mode: gated (default), proxied, direct, or public. |
SENDCRATE_PROXIED_DELIVERY |
sharing.proxied_delivery |
Set false to disable proxied delivery across the instance. |
SENDCRATE_SITE_HOST |
sharing.site_host |
Bare wildcard domain for static site links (e.g. acme-sites.net). Must be a separate registrable domain from app_url and share_url. |
SENDCRATE_ABUSE_EMAIL |
sharing.abuse_email |
Recipient for abuse reports submitted on <site_host> (defaults to admin.email). Requires outbound email. |
SENDCRATE_TRUSTED_PROXY |
trusted_proxy |
Single client-IP header to trust: x-forwarded-for, x-real-ip, cf-connecting-ip, or none. Defaults to none on Node and cf-connecting-ip on Workers. |
SENDCRATE_AUDIT_RETENTION_DAYS |
audit_retention_days |
Days of audit events kept before sweeping (default 365). |
SENDCRATE_ALLOW_PRIVATE_ENDPOINTS |
storage.allow_private_endpoints |
Allow loopback, private, or link-local S3 endpoints (default true on self-hosted, false on cloud). Cloud also enforces HTTPS endpoints. |
SENDCRATE_ADMIN_EMAIL / _PASSWORD / _NAME |
admin.* |
Initial admin account, created on boot (and recreated if missing as a recovery path). |
SENDCRATE_EMAIL_PROVIDER / _FROM / _ACCOUNT_ID / _API_KEY / _URL |
email.* |
Outbound mail provider: cloudflare, smtp (Node only), or webhook. |
SENDCRATE_SSO_GOOGLE_CLIENT_ID / _CLIENT_SECRET |
sso.google.* |
Google SSO credentials. Callback URL: <app_url>/api/auth/callback/google. |
SENDCRATE_SSO_MICROSOFT_CLIENT_ID / _CLIENT_SECRET / _TENANT |
sso.microsoft.* |
Microsoft Entra SSO credentials (common tenant is refused; requires xms_edov ID-token claim). Callback URL: <app_url>/api/auth/callback/microsoft. |
SENDCRATE_PUSH_VAPID_PUBLIC_KEY / _PRIVATE_KEY / _SUBJECT |
push.* |
Web Push VAPID keys (base64url P-256) and mailto: or https: subject. |
SENDCRATE_EDGES |
instance.edges |
Comma-separated (env) or list (yml) of public-role hosts probed on the Instance page. |
SENDCRATE_INSTANCE_OPEN_SIGNUP |
instance.open_signup |
Allow anyone to request a sign-up link by email (default true on cloud when email is configured, false on self-hosted). |
SENDCRATE_INSTANCE_STATUS_PAGE |
instance.status_page |
Show the Instance page to org owners and admins (default true on self-hosted, false on cloud). |
SENDCRATE_DB_PATH |
— | SQLite database path on Node (default data/sendcrate.db). |
SENDCRATE_CONFIG |
— | Path to sendcrate.yml on Node (default sendcrate.yml). |
SENDCRATE_MIGRATIONS_DIR |
— | Migrations folder override on Node. |
SENDCRATE_CONFIG_YAML |
— | Inline YAML body on Workers. |
SENDCRATE_BILLING_STRIPE_SECRET_KEY / _WEBHOOK_SECRET / _PRICES |
plugins.billing.* |
Stripe configuration for hosted billing deployments (cloud only). |
Config-locked buckets
Section titled “Config-locked buckets”Buckets declared in sendcrate.yml appear as config-locked in the app and can only be modified by editing the file:
buckets: - id: acme-media name: acme-media provider: b2 endpoint: https://s3.us-west-004.backblazeb2.com bucket: acme-media access_key_id: ${B2_KEY_ID} secret_access_key: ${B2_APP_KEY} reachability: public
- id: internal-archive name: internal-archive provider: minio endpoint: https://minio.acme.internal bucket: archive path_style: true access_key_id: ${MINIO_KEY} secret_access_key: ${MINIO_SECRET} reachability: internalSetting an explicit id keeps shares and webhooks attached even if you later rename the entry. Entries removed from sendcrate.yml are unlocked and marked so you can delete them in the UI.
Email providers
Section titled “Email providers”SMTP (Node only)
Section titled “SMTP (Node only)”email: provider: smtp from: "Sendcrate <no-reply@acme.io>" url: smtps://${SMTP_USER}:${SMTP_PASSWORD}@smtp.acme.io:465Cloudflare Email (Node)
Section titled “Cloudflare Email (Node)”email: provider: cloudflare from: "Sendcrate <no-reply@acme.io>" account_id: ${CLOUDFLARE_ACCOUNT_ID} api_key: ${CLOUDFLARE_API_TOKEN}On Cloudflare Workers, the EMAIL binding replaces account_id and api_key.
Webhook email
Section titled “Webhook email”Set provider: webhook with email.url (and optional bearer token in email.api_key). Sendcrate POSTs JSON with from, to, subject, and text.
Single Sign-On (Google & Microsoft)
Section titled “Single Sign-On (Google & Microsoft)”sso: google: client_id: ${GOOGLE_CLIENT_ID} client_secret: ${GOOGLE_CLIENT_SECRET} microsoft: client_id: ${MS_CLIENT_ID} client_secret: ${MS_CLIENT_SECRET} tenant: ${MS_TENANT_ID}Register the redirect URIs <app_url>/api/auth/callback/google and <app_url>/api/auth/callback/microsoft. Organization invitations and verified-domain auto-join rules apply to SSO sign-ins.