Skip to content

Installation

You need a Cloudflare account (the free plan is enough) and a GitHub or GitLab account. You do not need to install any software on your computer.

Cloudflare copies the Submitry installer into a repository in your own GitHub or GitLab account and builds it there. You can make that copy private.

You receive the license key and the Deploy button link after purchase (planned). Keep the key at hand.

  1. Open the Deploy link and sign in to Cloudflare.
  2. Connect your GitHub or GitLab account when asked.
  3. Choose a name for the repository (letters, numbers and hyphens) and select Private repository. Use one clean name. Each attempt creates a new repository in your account, so delete the ones from failed attempts.
  4. Choose a name for the database or accept the suggestion.

ADMIN_TOKEN is the password for managing Submitry. It is shown on the first screen. Enter a long random value (at least 32 characters) and store it in your password manager. Anyone who has it can read all submissions.

LICENSE_KEY is hidden. Scroll down on the same screen and open Advanced settings. Add a build variable named LICENSE_KEY, paste your key and tick Encrypt.

Two optional build variables go in the same place:

Name Effect
CUSTOM_DOMAIN A hostname such as forms.your-agency.com. The domain must be in your Cloudflare account. Cloudflare sets up DNS and the certificate.
WORKERS_DEV Set to false to switch off the workers.dev address once your own domain works. Only together with CUSTOM_DOMAIN.

Press Deploy. The build takes about a minute.

Open your Worker in the Cloudflare dashboard, go to Settings → Build → Build variables and secrets, add LICENSE_KEY (encrypted) and save.

Then start a new build. The very first build of a new Worker cannot be retried, so use one of these:

  • Change any build setting and save (for example add a space to the build command and remove it again). The build starts on its own.
  • Or push a commit to the repository Cloudflare created for you (the web editor on GitHub or GitLab is enough).

Later builds can be repeated with Retry build on the latest build.

Message Meaning
LICENSE_KEY is missing Add the build variable as above.
This license key is not valid Wrong key, expired license or a key for another product.
Already used by another deployment The license is already in use in another Cloudflare account. See Updates and your license.

Open your Worker address, for example https://submitry.your-account.workers.dev/health (or your CUSTOM_DOMAIN). It should show {"ok":true}. Then open /admin on the same address and sign in with your ADMIN_TOKEN: the admin screen lists what is still missing. You find the address in the dashboard under Workers & Pages → your Worker.

Submitry sends mail through a service you already use: toSend, Postmark, Resend, Brevo, or any mail server over SMTP. The simplest way: open Connections in the admin screen, add a mail account, paste the key of your provider and press Add mail account. It is stored encrypted in your database and never shown again. Use Send test mail to check it. SMTP is new, so tell us about any problems.

Choose the account for a client site under Sites, or for a single action in the form. See Connections.

If you prefer, add a global key as a secret in the Cloudflare dashboard instead (Settings → Variables and secrets, the runtime section, not the build section). It is used when no connection applies, and a secret there always wins over a key saved in the admin screen. These are the names:

Provider Secret name
toSend TOSEND_API_KEY
Postmark POSTMARK_SERVER_TOKEN
Resend RESEND_API_KEY
Brevo BREVO_API_KEY

The sender address you use in a form must be verified with that provider. Verify the whole sender domain with your provider (or your SMTP server’s operator) and add the DKIM and SPF records it gives you to your DNS, otherwise your mail may end up in spam.

The same applies to these optional keys:

Secret name Used for
TURNSTILE_SECRET_KEY Cloudflare Turnstile spam protection, used when no Turnstile connection applies
USERCHECK_API_KEY UserCheck, only for the email check module

For several clients, add a Turnstile secret under Connections instead and choose it per site or per form.

Installing from the command line (for developers)

Section titled “Installing from the command line (for developers)”

If you are comfortable with a terminal and have Bun installed, you can use the interactive installer from the zip you downloaded instead:

Terminal window
bun install
bun run setup

It signs you in to Cloudflare, creates the database, deploys, sets the secrets and offers to create your first site and form.