Install a self-hosted domain expiry checker
Supadomain is a Nuxt app that you run yourself. This page takes you from a fresh clone to a first domain on the list. You need two things before you start:
- Node.js 18 or later
- A MongoDB instance that the server can reach
Clone and install
git clone https://github.com/halitsever/supadomain.git
cd supadomain
npm install
cp .env.example .envnpm install also runs nuxt prepare, which generates the .nuxt/ folder.
Fill in .env
MONGODB_URI="mongodb://localhost:27017/supadomain"
NUXT_SESSION_PASSWORD="a-long-random-secret-min-32-chars"
ADMIN_EMAIL="admin@example.com"
ADMIN_PASSWORD="your-secure-password"| Variable | What it does |
|---|---|
MONGODB_URI | Connection string for your MongoDB database. The value in .env.example is a placeholder, so replace it. |
NUXT_SESSION_PASSWORD | Secret that seals the login session cookie. Use at least 32 characters. |
ADMIN_EMAIL | Email of the admin account created on first start. |
ADMIN_PASSWORD | Password of that account. |
One way to make a session secret:
openssl rand -hex 32The configuration reference covers the defaults and every other setting.
The admin account
Supadomain has one login. On start, the server checks whether any user exists. If the database has none, it creates the admin from ADMIN_EMAIL and ADMIN_PASSWORD and writes a line to the server log.
Two details matter here:
- Without
ADMIN_PASSWORD, the server generates a random password and prints it in that log line. Copy it then, because it is stored only as a bcrypt hash. - Without
ADMIN_EMAIL, the account isadmin@supadomain.com.
The account is seeded once. Changing these variables later does nothing while a user exists.
Start the server
For development:
npm run devFor production, build once and run the output with Node:
npm run build
node .output/server/index.mjsThe server listens on port 3000 unless you set PORT. Keep the process running. The hourly expiry check is a job inside the server process, so no check happens while it is stopped.
Add your first domain
- Open the app and sign in at
/loginwith the admin account. - On the Domains page, press Add domain.
- Type the registered domain, for example
example.com, and press Add.
Supadomain looks the domain up over RDAP straight away. When the lookup works, the domain appears in the table with its expiry date and a status. If the registry cannot be reached over RDAP, the app shows an error and the domain is not saved. RDAP vs WHOIS explains which domains that affects.
Each row shows the same things the ledger on the home page does:
| Column | Meaning |
|---|---|
| Status | Healthy, Warning (30 days or fewer), Critical (7 days or fewer), Expired or Unknown |
| Expires | The stored expiry date and the days left |
| Notifications | Whether alerts are on for this domain |
| Notify days | The alert thresholds for this domain. New domains get 30, 7 and 1. |
Click a row to open its drawer. Details leads to the domain's own page, where Refresh runs a new RDAP lookup. Use the row menu's Edit to switch alerts off or change the thresholds. Export on the Domains page downloads the whole list as a CSV file.
Next: connect Slack
A domain on the list does nothing loud until Slack is connected. Open Notifications, paste an incoming webhook URL and send a test. The Slack alerts guide walks through it and explains exactly when an alert fires.
Behind a reverse proxy
Login attempts are rate limited per IP address. The limiter reads the client IP from the last X-Forwarded-For entry, which assumes exactly one reverse proxy in front of the app. It writes its logs to a logs/ folder next to the app.