Skip to content

Open-source document signature platform. Not affiliated with DocuSign.

TypeScript

Cut the example env file down to what local development needs

Claudeca7a2bc192d3
diff --git a/.env.example b/.env.example
index 68f27b9..bd784a2 100644
--- a/.env.example
+++ b/.env.example
@@ -1,3 +1,8 @@
+# A site made with the "Deploy with Vercel" button needs nothing from this
+# file: Vercel connects the database, the file store and email by itself.
+# The three settings below are what local development needs. Everything
+# after them is optional.
+
# Postgres. `npm run db:start` runs one locally with these credentials.
DATABASE_URL=postgres://signudoc:[email protected]:5432/signudoc
@@ -5,51 +10,62 @@ DATABASE_URL=postgres://signudoc:[email protected]:5432/signudoc
# On Vercel, leave this unset: the project's own domain is used.
APP_URL=http://localhost:3000
-# Optional. BETTER_AUTH_URL defaults to APP_URL. BETTER_AUTH_SECRET defaults
-# to a value derived from the database password; set your own (for example
-# with `openssl rand -hex 32`) if you want sign-ins to survive a database
-# password change.
-# BETTER_AUTH_URL=http://localhost:3000
-# BETTER_AUTH_SECRET=
+# "capture" writes each email to .data/outbox as JSON instead of sending it,
+# which is all local development needs. Remove this line, or set "resend",
+# to send through Resend with the key below.
+EMAIL_DRIVER=capture
-# Optional. The daily cleanup at /api/internal/retention is safe to leave
-# open: it runs at most once an hour and tells the caller nothing. Set a
-# secret to close it to everyone who does not send it as a bearer token.
-# On Vercel use CRON_SECRET, which Vercel sends on its own cron calls.
-# RETENTION_JOB_SECRET does the same for a scheduler of your own elsewhere.
-# CRON_SECRET=
-# RETENTION_JOB_SECRET=
+# ---------------------------------------------------------------------------
+# Optional
+# ---------------------------------------------------------------------------
-# Email. "capture" writes each email to .data/outbox as JSON instead of
-# sending it, which is all local development needs. Use "resend" to send.
-EMAIL_DRIVER=capture
-RESEND_API_KEY=replace-with-resend-api-key
+# Resend API key, for sending real email. On Vercel the Resend integration
+# sets it.
+# RESEND_API_KEY=
-# Optional. The address email is sent from and the address replies go to are
-# chosen in the app, under Settings, Organization. Set these only to fix
-# them from the environment instead; they then cannot be changed in the app.
+# The address email is sent from and the address replies go to are chosen
+# in the app, under Settings, Organization. Set these only to fix them from
+# the environment instead; they then cannot be changed in the app.
# RESEND_FROM_EMAIL=
# SUPPORT_EMAIL=
-# Optional. The first person to open a new install sets it up at /setup and
-# becomes its administrator. Set a secret here and the setup page asks for
-# it, so that finding the URL first is not enough. It is also what lets a
+# BETTER_AUTH_URL defaults to APP_URL. BETTER_AUTH_SECRET defaults to a
+# value derived from the database password; set your own (for example with
+# `openssl rand -hex 32`) if you want sign-ins to survive a database
+# password change. In production a derived secret needs a database password
+# of at least 12 characters.
+# BETTER_AUTH_URL=http://localhost:3000
+# BETTER_AUTH_SECRET=
+
+# The first person to open a new install sets it up at /setup and becomes
+# its administrator. Set a secret here and the setup page asks for it, so
+# that finding the URL first is not enough. It is also what lets a
# signed-in user take charge of an install that has accounts but no
# administrator.
# SETUP_TOKEN=
-# Optional. HOSTED_MODE=1 runs SignuDoc as a public service under its own
-# name: landing page, built-in terms and privacy pages, sign-up open to
-# anyone. Leave it unset for an install that belongs to one organization.
-# HOSTED_MODE=
+# The daily cleanup at /api/internal/retention is safe to leave open: it
+# runs at most once an hour and tells the caller nothing. Set a secret to
+# close it to everyone who does not send it as a bearer token. On Vercel use
+# CRON_SECRET, which Vercel sends on its own cron calls.
+# RETENTION_JOB_SECRET does the same for a scheduler of your own elsewhere.
+# CRON_SECRET=
+# RETENTION_JOB_SECRET=
-# Optional, Vercel only. BOTID=1 turns on Vercel BotID for sign-in, sign-up,
-# password reset, the contact form and first-run setup. It is read when the
-# app is built, so redeploy after changing it. See "Bot protection" in the
-# README before turning it on.
+# Vercel only. BOTID=1 turns on Vercel BotID for sign-in, sign-up, password
+# reset, the contact form and first-run setup. It is read when the app is
+# built, so redeploy after changing it. See "Bot protection" in the README
+# before turning it on.
# BOTID=
-# File storage. Unset, PDFs are kept on this machine under .data/storage.
-# On Vercel, connect a Blob store to the project and leave this unset: the
-# store is picked up by itself. STORAGE_DRIVER=blob or =local forces one.
+# HOSTED_MODE=1 runs SignuDoc as a public service under its own name:
+# landing page, built-in terms and privacy pages, sign-up open to anyone.
+# Leave it unset for an install that belongs to one organization.
+# HOSTED_MODE=
+
+# File storage. Unset, PDFs are kept on this machine under .data/storage
+# (STORAGE_LOCAL_DIR changes where). On Vercel, connect a Blob store to the
+# project and leave this unset: the store is picked up by itself.
+# STORAGE_DRIVER=blob or =local forces one.
# STORAGE_DRIVER=local
+# STORAGE_LOCAL_DIR=