Step 2: Deploy your server
One button creates your server on your Cloudflare account, with its database, queue and AI search index, and keeps a copy of the code in your GitHub account so it can update itself.
1. Click Deploy
Sign in to Cloudflare (or create a free account), and connect your GitHub account when asked.
2. Fill in the form
You can leave the project and resource names as they are. Under the secrets, enter:
| Field | What to enter |
|---|---|
GOOGLE_CLIENT_ID | The client ID from step 1 |
GOOGLE_CLIENT_SECRET | The client secret from step 1 |
TOKEN_ENCRYPTION_KEY | Any long random string. Generate a password of 32 or more characters in your password manager and paste it. |
ALLOWED_EMAIL_DOMAINS | Who may sign in: domains and/or addresses, comma-separated, such as yourcompany.com,[email protected]. Leave it empty to allow only the first person who signs in: you. |
Save TOKEN_ENCRYPTION_KEY in your password manager. It encrypts everyone's stored Google sign-in. If it's lost, everyone has to sign in again.
3. Deploy
Click the deploy button at the bottom of the form. Cloudflare sets everything up and builds the server, which takes a couple of minutes. When it's done, it shows your server's address, such as:
https://echelon-inbox.your-subdomain.workers.dev
Open that address. Your server's status page shows what's set up and what to do next.
Updates
The deploy button copied the server code into a new repository in your GitHub account and connected it to Cloudflare, so any change pushed to that repository deploys automatically, database updates included. To move to a newer version of Echelon Inbox, bring the latest code from the Echelon Inbox repository into your copy. An AI coding agent can do this for you: ask it to "merge the latest upstream Echelon Inbox server code into this repository and push".
Change a setting later
In the Cloudflare dashboard, open Workers & Pages → your server → Settings → Variables and Secrets. Edit a value, such as ALLOWED_EMAIL_DOMAINS, and it takes effect right away.
Prefer the terminal? See Deploy from the command line.