Submify is an open-source form backend for contact forms, lead capture, feedback forms, and static websites. Send form data to its JSON API, review submissions in a dashboard, and export them as Excel (XLSX) or PDF. Run it on your own infrastructure with Docker Compose and keep submission data in your own PostgreSQL database.
Built with Go (Gin), Next.js, PostgreSQL, and Nginx, Submify lets developers reuse one backend across multiple sites. Agencies can give each client a password-protected, read-only submission portal. Telegram alerts and direct uploads to your own S3-compatible storage are optional.
Submify is built and maintained by Nodedr Infotech Private Limited, and released under the AGPL-3.0 license — free to self-host, modify, and use commercially. If you run a modified version as a network service for others, you must share that modified source under the same license.
Repository: github.com/Raktim94/Submify
Who is Submify for?
| Use case |
How Submify helps |
| Agencies managing client websites |
Separate submissions by project and give clients read-only portals |
| Developers building static websites |
Submit JSON from your existing form with JavaScript or a server-side proxy |
| React and Next.js projects |
Call the API from a submit handler, Route Handler, or your own backend |
| Business contact and enquiry forms |
Review enquiries in one inbox and export records as XLSX or PDF |
| Landing pages and waitlists |
Store the fields you collect in project-scoped submissions |
| Teams that self-host their tools |
Run the API, dashboard, and database together with Docker Compose |
You build the form UI; Submify handles submission storage and review. It is a form backend, not a drag-and-drop form builder.
Choose Submify when you want control over your deployment, database, and file storage and are prepared to operate the server yourself. It can replace the submission-collection part of a hosted form service; integrations may need changes to match its JSON API.
- Hosting: your own server or Docker-capable infrastructure.
- Data: submissions stored in your PostgreSQL database.
- Client access: password-protected, project-specific portals.
- Notifications: optional Telegram alerts and per-project email notifications through your own SMTP account.
- Files: optional uploads to an external S3-compatible bucket.
- Cost: no Submify software subscription for self-hosting; server and storage costs still apply.
- License: AGPL-3.0, including source-sharing obligations for modified network services.
See the quick start to install it or the API reference to connect an existing form.
How it works
- You create an account and a project. Registering gives you an account-level
api_key and a default project with its own pk_live_... public key.
- You embed that key in your website’s form. No SDK needed — any HTML form or
fetch() call can POST JSON straight to https://your-host:2512/api/submit with the key in the x-api-key header.
- Submify validates and stores it. The Go API checks the key, applies rate limits, and writes the submission’s JSON payload into PostgreSQL under that project — isolated from every other account and project in the same database.
- You read it from the dashboard. The Next.js app calls the same API over
/api/v1/... with a Bearer session token, lists submissions per project, and can export them as XLSX or PDF.
- Optional add-ons fire on submit. If Telegram is configured, you get a chat notification. If a file was attached, the browser already uploaded it directly to your own S3-compatible bucket via a short-lived presigned URL — Submify only stores the resulting object key, never the file bytes.
Everything — Postgres, the API, the dashboard, and Nginx in front of both — runs as one Docker Compose stack you control. There’s no third-party SaaS in the request path.
Why Submify
- One API key, every site. A single account
api_key works across all your projects; no per-form setup dance.
- You own the data. Everything lives in your own PostgreSQL container — no third-party form service in the loop.
- Bring your own storage. AWS S3, Cloudflare R2, MinIO, Wasabi — anything S3-compatible works for file uploads.
- One command to run. A single Docker Compose stack behind Nginx; strong secrets are generated for you on first boot.
What you get
- JSON form submission API — one primary
api_key per account, plus optional per-project keys
- Admin dashboard with JWT (access + refresh token) login
- Projects CRUD, submission inbox, bulk delete
- Export submissions as XLSX or PDF
- Client portal — share a per-project, password-protected
/(slug) URL so a client can view and export their submissions only (no dashboard account)
- Optional Telegram notification on new submission
- Optional presigned PUT uploads to any S3-compatible storage
Email notifications are optional: configure your own SMTP account and recipients per project. See Email notifications for configuration and delivery-status details.
Quick start
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/Raktim94/Submify/main/scripts/quickstart.sh | bash
Windows (PowerShell) — no Docker Desktop required:
irm https://raw.githubusercontent.com/Raktim94/Submify/main/scripts/quickstart.ps1 | iex
The Windows version installs WSL2 (Windows’ own free Linux subsystem) with a real Docker Engine + Docker CLI inside it if needed, plus the native Windows Docker CLI via winget — never Docker Desktop.
Either command installs Docker (and git) first if either is missing, clones the repo into ./Submify, generates strong random secrets on first run, and brings up Postgres, the API, the dashboard, and Nginx with docker compose up --build -d. Re-run it any time to pull the latest version and redeploy.
Once the containers are up, open http://localhost:2512 and create your first account at /register.
Updating to the latest version:
cd ~/Submify
git pull
docker compose up -d --build
See Operations: logs, backup, updates for the full version with build-cache pruning.
Prefer to see exactly what you’re running first? Use the manual steps below instead.
Manual install
git clone https://github.com/Raktim94/Submify.git
cd Submify
./scripts/compose-up.sh up --build -d
Windows (PowerShell):
git clone https://github.com/Raktim94/Submify.git
cd Submify
.\scripts\Compose-Up.ps1 up --build -d
No .env is required to get started — compose-up.sh / Compose-Up.ps1 auto-create .env.auto with strong random POSTGRES_PASSWORD and JWT_SECRET values on first run. Copy .env.example to .env only when you want to override defaults (custom CORS origins, port, cookie settings, etc.).
docker compose ps # check container health
docker compose logs -f api # follow API logs
Table of contents
- How it works
- Architecture
- Requirements
- Quick start
- URLs and ports
- Accessing via network IP
- Configuration and environment variables
- First-time access
- Optional: Cloudflare Tunnel
- CasaOS / ZimaOS
- API overview
- Connecting a client website (forms)
- Integrating with an AI coding assistant
- External S3 uploads (optional)
- Dashboard workflow
- Client portal (share view-only access)
- Limits and security defaults
- Security and vulnerability scanning
- Using GitHub Actions secrets
- Operations: logs, backup, updates
- Troubleshooting
- License
- Developer & ownership
- Use cases
- Self-hosted Formspree alternative
- Frequently asked questions
- Support and contribute
Architecture
┌────────────────────────┐
Browser ───▶ │ Nginx :2512 │
/ clients └────────────┬───────────┘
│
┌─────────────┴─────────────┐
▼ ▼
/api/* → Go API (Gin) :8080 /* → Next.js dashboard :3000
│
▼
PostgreSQL (single DB, JSONB-friendly)
│
▼ (optional, per project)
External S3-compatible storage (AWS S3 / R2 / MinIO / Wasabi)
- Nginx is the only published port (2512) and proxies
/api/* to the Go API and everything else to the Next.js app.
- PostgreSQL stores all tenants in one database. Rows are scoped by
user_id / project_id; the API never lists or mutates another user’s data.
- Object storage is optional and external — connect any S3-compatible provider per project from the dashboard. No storage container ships with the stack.
The browser and external clients should use one origin for dashboard + API (e.g. https://forms.example.com:2512/api/v1/...), or configure CORS for separate sites — see Connecting a client website.
Requirements
- Linux, macOS, or Windows host with admin access (sudo-capable user on Linux)
- Docker Engine and Docker Compose v2 plugin
- Inbound TCP 2512 open on your host firewall / security group (or whatever port you front it with)
- TLS termination (reverse proxy or tunnel) for production
Default Compose uses ./data/postgres next to the compose file, so the stack runs unmodified on Windows, macOS, Linux, and CasaOS-style installs.
Before you install (host prep)
Linux (recommended for servers):
- Install Docker Engine + Compose plugin (see the official docs).
- Verify:
docker --version and docker compose version.
- Add your user to the
docker group so you don’t need sudo for every command: sudo usermod -aG docker $USER, then re-login.
macOS: install Docker Desktop, make sure it’s running, then verify the same two commands above.
Windows: the Quick start one-liner above sets up Docker via WSL2 for you, no Docker Desktop needed. If you’re doing the manual steps below instead, either install Docker Desktop, or set up WSL2 + Docker Engine yourself (see Microsoft’s WSL container docs) and run the manual commands from inside that WSL distro.
Debian users — common pitfall: If you installed Docker from the Debian repositories (apt install docker.io), the Compose v2 plugin is not included. Running docker compose version will return docker: 'compose' is not a docker command. Follow the fix below before running the installer.
Fix: Docker Compose v2 on Debian (docker.io install)
This happens when Docker was installed from Debian’s package (docker.io) instead of Docker’s official repository. The two package trees conflict — Debian ships its own docker-buildx that blocks Docker’s official docker-buildx-plugin.
Step 1 — Add Docker’s official repository:
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" \
| sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
Step 2 — Remove the conflicting Debian buildx package:
sudo apt remove docker-buildx
Step 3 — Install the official Compose and Buildx plugins:
sudo apt install docker-buildx-plugin docker-compose-plugin
If apt install still reports broken packages, run:
sudo apt --fix-broken install
sudo apt install docker-buildx-plugin docker-compose-plugin
Step 4 — Verify and re-run the installer:
docker buildx version
docker compose version
curl -fsSL https://raw.githubusercontent.com/Raktim94/Submify/main/install.sh | bash
URLs and ports (browser vs. containers)
Nginx is the only service that publishes a port in the default docker-compose.yml: 2512, bound to 127.0.0.1 by default.
| What |
URL |
| Web dashboard |
http://<your-server-ip>:2512 (e.g. http://localhost:2512) |
| API |
same host, under /api/v1 |
| Health check |
http://<your-server-ip>:2512/api/v1/system/health |
You don’t open port 8080 on the host — that’s only the API listening inside its container. Traffic flow: Browser → :2512 (nginx) → /api/* → api:8080 and → /* → web:3000.
Allow TCP 2512 from whatever networks should reach the UI/API (or 80/443 if you terminate TLS in front).
Accessing Submify from another device (LAN / network IP)
By default the stack binds only to 127.0.0.1, so it is reachable from the same machine only. To reach it from other devices on your network (or from the internet), do the following:
Step 1 — Bind to all interfaces (or a specific IP)
Add these two lines to your .env file (create it if it doesn’t exist — copy .env.example as a starting point):
# Bind Nginx to all interfaces so other devices can reach port 2512.
# Replace 0.0.0.0 with a specific IP if you want to restrict to one interface.
SUBMIFY_BIND_IP=0.0.0.0
# Tell the API to allow requests coming from your server's IP.
# Replace 192.168.1.100 with your actual server IP (or domain).
# Keep localhost/127.0.0.1 entries so the dashboard still works locally.
ALLOWED_ORIGINS=http://localhost:2512,http://127.0.0.1:2512,http://192.168.1.100:2512
Step 2 — Restart the stack
docker compose up -d
Step 3 — Open your firewall
Make sure the host firewall allows inbound TCP on port 2512:
# UFW (Ubuntu / Debian)
sudo ufw allow 2512/tcp
# firewalld (Fedora / RHEL / CentOS)
sudo firewall-cmd --add-port=2512/tcp --permanent && sudo firewall-cmd --reload
# iptables
sudo iptables -I INPUT -p tcp --dport 2512 -j ACCEPT
Now open http://<server-ip>:2512 from any device on the same network.
Production note: For internet-facing deployments, put Submify behind a reverse proxy (Nginx, Caddy, Traefik) or a Cloudflare Tunnel with TLS instead of exposing port 2512 directly. See Optional: Cloudflare Tunnel.
Configuration and environment variables
No .env is required — defaults live in docker-compose.yml, and ./scripts/compose-up.sh auto-generates strong secrets into .env.auto on first run. Copy .env.example to .env only to override values.
API container (see apps/api/internal/config/config.go):
| Variable |
Default |
Meaning |
PORT |
8080 |
HTTP port inside the API container |
DATABASE_URL |
Compose default to db |
PostgreSQL connection string |
JWT_SECRET |
random per-boot, or .env/.env.auto |
JWT HMAC secret (≥32 characters; always override in production) |
ALLOWED_ORIGINS |
http://localhost:2512,http://127.0.0.1:2512 |
CORS allowlist (comma-separated) |
UPLOAD_MAX_SIZE_BYTES |
26214400 (25 MiB) |
Max upload size for presign |
UPLOAD_ALLOWED_MIME |
image/png,image/jpeg,application/pdf,text/plain |
Allowed MIME types for presign |
PRESIGN_EXPIRY_MINUTES |
10 |
Presigned URL lifetime |
ACCESS_TOKEN_TTL_MINUTES |
30 |
Access token lifetime |
REFRESH_TOKEN_TTL_HOURS |
24 |
Refresh token lifetime |
POSTGRES_PASSWORD |
built-in default, or .env/.env.auto |
DB password; must match DATABASE_URL |
TRUSTED_PROXIES |
private RFC1918 + loopback |
CIDRs allowed to set X-Forwarded-For |
RATE_LIMIT_SENSITIVE_PUBLIC_RPM |
25 |
Login / setup / refresh / logout per IP |
RATE_LIMIT_SUBMIT_IP_RPM |
90 |
Public submit per client IP |
RATE_LIMIT_SUBMIT_KEY_RPM |
180 |
Public submit per API key |
RATE_LIMIT_AUTH_USER_RPM |
600 |
Authenticated API per user id |
Web container:
| Variable |
Typical value |
Meaning |
NEXT_PUBLIC_API_BASE |
/api/v1 |
Browser-side API prefix |
NODEDR_SUBMIT_PUBLIC_KEY |
empty or pk_… |
Optional server-side key for the marketing contact-form proxy |
NODEDR_SUBMIT_SECRET_KEY |
empty or sk_… |
Optional HMAC signing for that upstream request — never commit real values |
First-time access
- Open
/register (or POST /api/v1/auth/register) and create your first account. Each instance supports exactly one account — once it exists, /register redirects to /login and the API rejects further POST /auth/register calls with 403.
- Log in at
/login.
- Open Dashboard — your form API key is shown there, with a Default inbox project created automatically.
- Use that
api_key on every website integration (details below). Add extra Projects only if you want separate ingest keys or organization.
JSON submissions work without any storage setup. Configure external S3 per project only when you need presigned file uploads.
Optional: Cloudflare Tunnel
For servers behind CGNAT, or when you want Cloudflare in front:
export TUNNEL_TOKEN="your-token"
docker compose --profile tunnel up -d
The cloudflared service depends on Nginx — point your tunnel’s DNS/config at this stack.
CasaOS / ZimaOS
casaos/docker-compose.yml is the CasaOS App Store manifest (x-casaos
metadata, bind-mounted /DATA/AppData/$AppID/... volumes per CasaOS
convention). Differences from the plain docker-compose.yml above:
- Images are referenced by tag (
ghcr.io/raktim94/submify-*:0.1.0) —
built and published multi-arch (amd64/arm64) to GHCR by
.github/workflows/docker-publish.yml —
rather than built locally.
- Nginx’s config is baked into its own image
(
infra/nginx/Dockerfile) instead of a
bind-mounted host file — a CasaOS App Store install has no access to this
repo’s checkout, only the compose file and declared volumes.
- The Postgres password and JWT signing secret are not fixed defaults
— this manifest is a public store listing, so a hardcoded secret would be
a known-public credential on every install that doesn’t change it.
Instead,
db and api each generate a random secret into a shared
/DATA/AppData/$AppID/secrets/ volume the first time they boot (via an
entrypoint: wrapper — not command:, since both images already have a
fixed ENTRYPOINT and a command: override would just become extra
argv instead of actually replacing what runs). There’s no separate
one-shot init service for this, since CasaOS doesn’t cleanly support init
containers in its app-status UI — both wrappers are just the first few
lines of an otherwise normal long-running service.
- Every service sets
security_opt: [no-new-privileges:true].
casaos/icon.png and casaos/thumbnail.png come from Submify’s actual
brand assets, and casaos/screenshot-{1,2,3}.png are genuine Playwright
captures of a real running instance (landing page, dashboard, calendar) —
not placeholders.
Not yet done: official submission to the CasaOS/ZimaOS App Store
(IceWhaleTech/CasaOS-AppStore) — the manifest is published and validated
locally (fresh install + restart, both tested against the real GHCR
images), but hasn’t been merged into the official store index yet, so
CasaOS’s own “Custom Install”/compose-URL flow is the way to install it
today.
API overview
Authoritative route list: apps/api/internal/httpapi/server.go. Full request/response contract: docs/api.md.
| Area |
Method |
Path |
Auth |
| Bootstrap |
GET |
/api/v1/system/bootstrap-status |
None |
| Health |
GET |
/api/v1/system/health |
None |
| Auth |
POST |
/api/v1/auth/register, /auth/login, /auth/refresh, /auth/logout |
None |
| Submit |
POST |
/api/submit |
Header x-api-key |
| Projects |
GET, POST |
/api/v1/projects |
Bearer |
| Project |
PATCH |
/api/v1/projects/{id} |
Bearer |
| Submissions |
GET |
/api/v1/projects/{id}/submissions |
Bearer |
| Bulk delete |
DELETE |
/api/v1/projects/{id}/submissions/bulk |
Bearer |
| Presign |
POST |
/api/v1/uploads/presign |
Bearer |
| Export |
GET |
`/api/v1/projects/{id}/export?format=xlsx |
pdf` |
| Security |
PUT |
/api/v1/users/me/password |
Bearer |
| Security |
POST |
/api/v1/users/me/api-key/rotate |
Bearer |
| Security |
POST |
/api/v1/users/me/projects/rotate-keys |
Bearer |
1. Get your API key — after login, open Projects and copy a project public key (pk_live_...). Use it as x-api-key when posting to /api/submit.
2. CORS, if your form lives on another domain — if your browser JS runs on https://client.example.com and calls Submify on https://api.example.com, set:
ALLOWED_ORIGINS=https://client.example.com
Comma-separate multiple origins; restart the API container after changing env.
3. Recommended JSON body:
{
"data": { "name": "Jane", "email": "[email protected]", "message": "Hello" },
"files": []
}
Flat objects (without data / files) are also accepted and stored as-is.
4. fetch from the browser:
const API_KEY = "<your project public key>";
const SUBMIT_URL = "https://your-submify-host:2512/api/submit";
await fetch(SUBMIT_URL, {
method: "POST",
headers: { "Content-Type": "application/json", "x-api-key": API_KEY },
body: JSON.stringify({
data: { name: "Jane", email: "[email protected]", message: "Hi" },
files: []
})
});
5. Server-side proxy — call Submify from your own backend with the same POST /api/submit contract so the key never reaches the browser.
This repo’s own Next.js dashboard (apps/web) ships an example of this pattern — a contact form posting through a Route Handler. See /docs/contact-proxy in the running app for the full guide, including a copy-paste prompt for AI coding assistants.
MCP server (Claude Code, Codex, Cursor)
Every instance has a built-in remote MCP server at /api/v1/mcp. Create a master API key in Settings → API keys for AI agents, then:
claude mcp add --transport http submify https://forms.example.com/api/v1/mcp \
--header "Authorization: Bearer smk_..."
The agent can then create projects and website keys, generate the form snippet, set allowed origins, send a signed test submission, read submissions, and manage calendars, team members, backups and updates — 37 tools, each running through the same permission checks as the dashboard. The key acts as you; revoke it from Settings at any time. Creating/revoking keys, adding team members, downloading/restoring backups and changing the password stay dashboard-only. For stdio-only clients, apps/mcp bridges to the same endpoint (SUBMIFY_API_KEY); see apps/mcp/README.md.
Integrate with AI Coding Agents
Official agent-ready guide: prompts/AI_INTEGRATION_PROMPT.md (verified submit contract, Next.js route handler, MCP setup, test checklist). Repo guidance for agents: AGENTS.md, llms.txt.
Integrating with an AI coding assistant
If you’re wiring Submify into a site using Cursor, Claude Code, Copilot, or ChatGPT, paste this prompt and fill in the bracketed parts:
Integrate Submify form submission into this project.
Submify is a self-hosted form backend. My instance's API base is [https://your-submify-host:2512/api]. My project's public API key is [pk_live_xxx] (treat it like a public site key, not a secret — it's safe in client code, but read it from an env var, not hardcoded).
Requirements:
1. Add a submit handler (server-side route/action if this framework supports one, otherwise a client-side fetch) that POSTs JSON to `${API_BASE}/submit` with header `x-api-key: <the public key>` and body `{ "data": { ...form fields }, "files": [] }`.
2. Validate the form client-side before sending (required fields, email format) and show inline success/error states based on the HTTP status (`201` success, `400` validation error from Submify, `401` bad key, `429` rate limited).
3. Add a hidden honeypot field (e.g. `_gotcha`) to the form; if it has a value, skip the request and show success anyway (silently drops bot submissions without calling Submify).
4. Do not log or expose the API key in client-visible source if a server-side option exists for this framework; prefer an env var named `SUBMIFY_API_KEY` (or `NEXT_PUBLIC_SUBMIFY_API_KEY` only if this must run fully client-side and the project has no backend).
5. Keep the request body under common upload limits — if the form has file inputs, use Submify's presign flow (`POST /api/v1/uploads/presign`, then `PUT` the file to the returned `upload_url`, then include `object_key` in `files` on the submit call) instead of inlining file bytes.
Match this project's existing form/component conventions and error-handling style rather than introducing a new pattern.
That’s enough context for most assistants to wire up a working integration without you re-explaining the API shape each time.
Rate limits are tiered so logged-in dashboard use isn’t punished by anonymous caps:
GET /system/bootstrap-status and GET /system/health — unlimited (use your own WAF/monitoring if needed)
- Login / refresh / logout / setup — per client IP, default 25/min
POST /submit — per IP and per API key, default 90/min and 180/min
- All Bearer-authenticated routes — per user id, default 600/min
Nginx forwards X-Forwarded-For; the API trusts it only from TRUSTED_PROXIES. Tune the rate-limit env vars if legitimate traffic hits 429.
External S3 uploads (optional)
Form JSON always goes to PostgreSQL. File uploads are optional and use any external S3-compatible provider — nothing is bundled, so you bring your own bucket.
1. Configure storage — in Settings (account-level) or per-Project, set:
s3_endpoint — provider API endpoint
s3_bucket — your bucket name
s3_access_key / s3_secret_key — provider-issued API credentials (not root/admin credentials)
Project-level credentials take priority; user-level (account) credentials are the fallback, for backward compatibility.
2. Make sure the API container can reach the endpoint — not just your browser:
| Provider |
Typical endpoint |
| AWS S3 |
https://s3.<region>.amazonaws.com |
| Cloudflare R2 |
https://<accountid>.r2.cloudflarestorage.com |
| Self-hosted MinIO |
http://minio:9000 (Docker network) or a reachable host URL |
The access key needs PutObject (and related object) permissions on the target bucket; outbound network access from the api container to that endpoint must be allowed.
3. Upload flow:
const presign = await fetch('/api/v1/uploads/presign', {
method: 'POST',
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },
body: JSON.stringify({ project_id: projectId, filename: file.name, content_type: file.type, size: file.size })
}).then((r) => r.json());
await fetch(presign.upload_url, { method: 'PUT', headers: { 'Content-Type': file.type }, body: file });
await fetch('/api/submit', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'x-api-key': projectPublicKey },
body: JSON.stringify({
data: { name: 'Jane Doe', email: '[email protected]' },
files: [{ object_key: presign.object_key, name: file.name, content_type: file.type }]
})
});
- Your app calls
POST /api/v1/uploads/presign with project_id, filename, content_type, size.
- Submify returns a short-lived
upload_url and object_key.
- The browser/client
PUTs the file bytes directly to upload_url — this is the actual S3 upload.
- Your app then sends the normal
POST /api/submit, including object_key in files.
- Submify stores that metadata alongside the submission.
Common mistakes: wrong endpoint URL for your region/account, credentials missing bucket permissions, bucket name typos, calling /uploads/presign without Bearer auth (or for a project you don’t own), unsupported MIME types, files larger than UPLOAD_MAX_SIZE_BYTES, or putting secret keys in browser-exposed code instead of signing server-side.
Dashboard workflow
- Log in.
- Copy your account form API key from the dashboard (one key, every site).
- Point website forms at
POST /api/submit with x-api-key: <project_public_key>.
- Review submissions in the Default inbox (or additional projects for separation).
- Export XLSX or PDF; use bulk delete to stay under the per-project cap.
Client portal (share view-only access)
Sometimes the person who needs to see submissions isn’t you — it’s the client whose site the
form lives on. The client portal gives each project a public, password-protected URL where
that client can view and export submissions — and nothing else. They never get a dashboard
account, API keys, delete rights, or visibility into your other projects.
- Every project has its own URL:
https://your-host:2512/<slug> (e.g. /acme-contact). The
slug is generated from the project name and can be renamed from Projects.
- Auto-generated password. Creating a project mints a strong random portal password, shown
once so you can copy and share it. Only its Argon2id hash is stored — regenerate a fresh one
any time, or set your own from the dashboard.
- You control access. Enable/disable the portal per project, rotate or clear the password, and
change the slug — all from the project card in Projects.
- You skip the password. Opening your own project’s portal while signed in to the dashboard lets
you straight through (no password prompt).
How it’s kept safe: portal sessions are project-scoped, stored in an HttpOnly cookie (never
exposed to JavaScript), and can only reach the read-only /(slug) view and export endpoints. Login
is rate-limited per project (on top of the per-IP limit) to blunt brute-force guessing, and every
portal response is sent Cache-Control: no-store. Slugs are validated against a reserved-word list
so a portal can never shadow a dashboard route.
Share the URL + password with your client. To revoke access, disable the portal or regenerate
the password from the project card.
Limits and security defaults
| Item |
Value |
| Submissions per project |
5000 (then 429) |
| Password hashing |
Argon2id |
| Sessions |
JWT access + refresh, Bearer auth for dashboard APIs |
| Rate limiting |
Tiered (see Rate limits); authed users limited per account, not per shared IP |
| Tenant isolation |
Project ownership checked on every authenticated, project-scoped route |
Use HTTPS in production. The account api_key is meant to be embedded in public sites (like a reCAPTCHA site key, not a secret). If it leaks, rotate it from Settings immediately — project-level keys can be rotated individually or all at once.
Settings controls: change login password, rotate account API key, rotate all project keys at once, update S3/storage credentials, save host bind/port preferences.
Security and vulnerability scanning
Submify runs on Go 1.26 and Node.js 24 LTS, with dependencies kept current — apps/api/go.sum and apps/web/package-lock.json are committed so every build resolves the exact same, checksum-verified dependency tree (no silent drift between your build and the one this repo was tested against).
Before each release, dependencies are checked with the official scanners:
# Go API — apps/api
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
# Next.js dashboard — apps/web
npm audit
Both currently report zero known vulnerabilities. If you fork this project, re-run both commands after any dependency bump, and keep go.sum / package-lock.json committed so govulncheck and npm audit are checking what actually ships.
If you discover a security issue, please report it privately to [email protected] rather than opening a public issue.
Using GitHub Actions secrets
Two common situations call for storing secrets in GitHub → Settings → Secrets and variables → Actions → New repository secret instead of committing them:
1. Your website’s CI calls Submify
If a site you deploy via GitHub Actions submits forms to Submify, store the project’s public key (and, for the Nodedr contact-proxy pattern, the secret key) as repository secrets rather than hardcoding them:
| Secret name |
Value |
SUBMIFY_API_KEY |
Project public key (pk_live_...) from your dashboard |
NODEDR_SUBMIT_PUBLIC_KEY |
Only if using the apps/web contact-proxy pattern in your own site |
NODEDR_SUBMIT_SECRET_KEY |
Same — never expose this one to the client bundle |
Reference them in a workflow step that builds your site’s Docker image or static export:
- name: Build site
env:
SUBMIFY_API_KEY: ${{ secrets.SUBMIFY_API_KEY }}
run: docker build --build-arg SUBMIFY_API_KEY="$SUBMIFY_API_KEY" -t my-site .
${{ secrets.NAME }} is masked in logs automatically — never echo a secret directly, and never pass it as a plain --build-arg without RUN --mount=type=secret in the Dockerfile if the layer could be inspected later.
2. You deploy Submify itself via GitHub Actions
If you run Submify on a self-hosted runner (matching the runs-on: [self-hosted, ...] pattern used for Docker Compose deploys), store these as repository (or environment) secrets instead of relying on docker-compose.yml’s built-in defaults:
| Secret name |
Used for |
POSTGRES_PASSWORD |
Database password (must stay stable across redeploys — changing it without migrating ./data/postgres locks you out) |
JWT_SECRET |
Session signing key, ≥32 random characters |
TUNNEL_TOKEN |
Only if using the Cloudflare Tunnel profile |
S3_ACCESS_KEY_ID / S3_SECRET_ACCESS_KEY |
Only if you provision S3 credentials at deploy time rather than via the dashboard |
A deploy step then writes them into .env on the runner before bringing the stack up:
- name: Write secrets and deploy
env:
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
run: |
cat > .env <</slug></project_public_key></accountid></region></the></your></server-ip></your-server-ip></your-server-ip>
评论