Self-Hosting
Configuration
VulnRadar uses a two-layer config model: non-secret tunables live in TypeScript source, secrets live in your environment. Here's how it all fits together.
Overview
VulnRadar has a two-layer configuration model designed to keep secrets out of source code while making non-secret deployment settings easy to customize for self-hosters.
Quick Reference
| What you want to change | Where |
|---|---|
| App name, URL, emails, branding, SEO | lib/config/config-values.ts (or the NEXT_PUBLIC_* env var named in the field's help), then rebuild. Saving these in Admin -> Settings records the value but does not change what the app renders. |
| Rate limits, feature flags, billing plans, retention | Admin -> Settings (takes effect within ~30s, no restart). Falls back to lib/config/config-values.ts. |
| Database URL, API encryption key, Stripe keys | .env (or docker-compose.yml env) |
| SMTP credentials, Discord OAuth | .env |
| Client-side public values (Turnstile site key, app URL) | .env as NEXT_PUBLIC_* |
Architecture
lib/config/
├── config-values.ts ← SOURCE OF TRUTH (raw CONFIG_* constants)
├── registry.ts ← SETTINGS_REGISTRY: type, bounds, admin tab, tier
├── runtime-config.ts ← Resolver for runtime-tier keys:
│ database ?? environment ?? default
├── constants.ts ← Re-exports + derived route/error maps
├── client-constants.ts ← Client-safe subset (no server-only values)
├── env.ts ← Zod validation of required env vars at boot
├── brand.ts ← Logo, colours, and other branding derivations
├── check-stats.generated.ts← Generated check counts (npm run checks:compile)
└── public-paths.ts ← Middleware public-path allowlistSingle source of truth: lib/config/config-values.ts exports raw CONFIG_* constants. registry.ts classifies each one into a runtime or build tier. A runtime key is read through runtime-config.ts on every use, which resolves it as database ?? environment ?? shipped default. A build key is compiled in: the running app reads the CONFIG_* constant (or its NEXT_PUBLIC_* env override) and never looks at the database row at all. Everything else (derived objects, route maps, client-safe subsets) is built from that. Edit config-values.ts to change any shipped default; use the admin Settings tab to change a runtime-tier value on a running deployment.
Layer 1: Static App Config
Edit lib/config/config-values.ts to change the shipped default for any of these. What that edit costs you depends on the setting’s tier. General, Social, Branding, and SEO values are build tier: editing the constant (or the NEXT_PUBLIC_* env var named in the field’s help text) and rebuilding is the only way to change them. Most of the rest (rate limits, feature flags, billing, scan timeouts, auth windows, and more) are runtime tier and can also be overridden without touching source, from the Admin Settings Page below.
App metadata
CONFIG_APP_NAME: Display name (default:VulnRadar)CONFIG_APP_SLUG: URL-safe slugCONFIG_APP_VERSION: Public version stringCONFIG_MIN_SCHEMA_VERSION: minimum schema version this app accepts (default:3.0.0). The app refuses to start ifvulnradar_schema_meta.schema_versionis lower.CONFIG_ENGINE_VERSION: Detection engine versionCONFIG_TOTAL_CHECKS_LABEL: Marketing badge (current:905+)CONFIG_APP_URL: Public URLCONFIG_APP_REPO: GitHubowner/repoCONFIG_APP_DESCRIPTIONCONFIG_DISCORD_INVITE_URL: Optional
Emails
CONFIG_SUPPORT_EMAILCONFIG_LEGAL_EMAILCONFIG_SECURITY_EMAIL: used insecurity.txtCONFIG_ENTERPRISE_EMAILCONFIG_NOREPLY_EMAIL: sender for transactional emailCONFIG_TERMS_UPDATED_AT: ISO date; bumped when terms change. API-key creation refuses keys from users who have not accepted this date.
Branding
CONFIG_LOGO_URL: Path under/publicCONFIG_PRIMARY_COLOR: Hex color (informational; the actual brand color is set via the--primaryCSS variable inapp/globals.css)CONFIG_FOOTER_TEXT
Authentication timeouts
CONFIG_SESSION_TIMEOUT_DAYS(default:7)CONFIG_PASSWORD_RESET_HOURS(default:1)CONFIG_EMAIL_VERIFICATION_HOURS(default:24)CONFIG_DEVICE_TRUST_DAYS(default:30)CONFIG_TOTP_VALIDITY_SECONDS(default:30)CONFIG_CLEANUP_INTERVAL_MS(default:86400000= 24h)
Rate limits
All values are per-IP unless noted. The window is in minutes. Internally lib/config/constants.ts multiplies by 60 for the per-second window.
| Constant | Attempts | Window (min) |
|---|---|---|
| CONFIG_RATE_LIMIT_LOGIN_ATTEMPTS | 5 | 15 |
| CONFIG_RATE_LIMIT_SIGNUP_ATTEMPTS | 3 | 60 |
| CONFIG_RATE_LIMIT_FORGOT_PASSWORD_ATTEMPTS | 3 | 10 |
| CONFIG_RATE_LIMIT_API_REQUESTS | 100 | 60 |
| CONFIG_RATE_LIMIT_SCAN_REQUESTS | 100 | 60 |
| CONFIG_RATE_LIMIT_BULK_SCAN_REQUESTS | 10 | 60 |
Scanning
CONFIG_MAX_URL_LENGTH(default:2048)CONFIG_MAX_URLS_BULK(default:100)CONFIG_SCAN_TIMEOUT_SECONDS(default:300)CONFIG_BULK_SCAN_TIMEOUT_SECONDS(default:1800)CONFIG_CRAWL_SCAN_TIMEOUT_SECONDS(default:900): a crawl runs under its own, larger budget than a single URL.CONFIG_DEFAULT_SEVERITY_THRESHOLD(default:low)
API
CONFIG_API_KEY_PREFIX(default:vr_live_)CONFIG_DEFAULT_API_KEY_DAILY_LIMIT(default:50): applied when creating a new key. A per-key limit override takes precedence over itCONFIG_API_CURRENT_VERSION(default:v3)CONFIG_API_SUPPORTED_VERSIONS(default:["v3"]). This is the only version served: there is no/api/v1or/api/v2route tree in this build.
Demo mode
The /demo page lets unauthenticated visitors run scans. Rate-limited per IP.
CONFIG_DEMO_SCAN_LIMIT(default:5)CONFIG_DEMO_WINDOW_HOURS(default:12)
Disable demo mode entirely with CONFIG_FEATURE_DEMO_MODE = false.
DB constraints
CONFIG_MAX_EMAIL_LENGTH(default:255)CONFIG_MAX_NAME_LENGTH(default:255)CONFIG_MAX_DESCRIPTION_LENGTH(default:1000)CONFIG_MAX_TEAM_NAME_LENGTH(default:255)CONFIG_MAX_TAGS_PER_SCAN(default:10)
Pagination
CONFIG_PAGINATION_DEFAULT_PAGE_SIZE(default:20)CONFIG_PAGINATION_MAX_PAGE_SIZE(default:100)CONFIG_PAGINATION_DEFAULT_PAGE(default:1)
Feature flags
| Constant | Default | Toggles |
|---|---|---|
| CONFIG_FEATURE_DEMO_MODE | true | /demo page and /api/v3/demo-scan |
| CONFIG_FEATURE_TEAMS | true | Team creation + membership |
| CONFIG_FEATURE_API_KEYS | true | Bearer-key generation |
| CONFIG_FEATURE_WEBHOOKS | true | Scan-complete webhooks |
| CONFIG_FEATURE_SCHEDULED_SCANS | true | Scheduled /api/v3/schedules |
| CONFIG_FEATURE_BULK_SCANS | true | POST /api/v3/scan/bulk |
| CONFIG_FEATURE_PDF_REPORTS | true | PDF export of findings |
| CONFIG_FEATURE_EMAIL_NOTIFICATIONS | true | Email delivery for scan-complete + notifications |
Billing
Plan catalogs (limits per plan) live in lib/billing/catalog.ts. The values below only configure the upper bounds and the retention window.
CONFIG_BILLING_ENABLED(default:true). Set tofalseto give every user unlimited scans (orCONFIG_BILLING_UNLIMITED_MODE_LIMITif set).CONFIG_BILLING_FREE_LIMIT(default:25)CONFIG_BILLING_CORE_SUPPORTER_LIMIT(default:100)CONFIG_BILLING_PRO_SUPPORTER_LIMIT(default:150)CONFIG_BILLING_ELITE_SUPPORTER_LIMIT(default:500)CONFIG_BILLING_FREE_RETENTION(-1),CONFIG_BILLING_CORE_SUPPORTER_RETENTION(-1),CONFIG_BILLING_PRO_SUPPORTER_RETENTION(-1),CONFIG_BILLING_ELITE_SUPPORTER_RETENTION(-1): scan-history retention in days per plan.-1, the shipped value on every plan, means keep forever. A stored result is small enough that age-based deletion is not worth the data loss; set a positive number per plan if you want a window back.CONFIG_BILLING_UNLIMITED_MODE_LIMIT(default:-1). Used only whenCONFIG_BILLING_ENABLED = false.
Admin Settings Page
297 of the values above also have a row in the system_settings database table and a control on /admin’s Settings tab, sign in as an admin to reach it. The tab list there (Operations, General, Social, Branding, SEO, Features, Billing, Rate Limits, Scanning, Authentication, AI, Demo, Advanced) and every field on it is generated from the same registry that generates the reference tables below, so the two cannot drift apart. Read the next subsection before you rely on a value you saved there: a control existing on that page does not mean the running app reads it.
Runtime vs. build tier
Every setting on the page is one of two tiers, shown as a badge per tab rather than repeated on every field:
- Runtime: read through
lib/config/runtime-config.tson every use. Rate limits, feature flags, billing limits, scan timeouts, auth windows, AI budgets, and the rest of the request-time values. Saving one applies to that server process immediately and to every other running instance within the cache TTL. - Build: the 38 fields in the General, Social, Branding and SEO groups (app name, slug, description, app URL, repo, logo, colours, footer text, the 9
SOCIAL_*account URLs, the 13SEO_*keys) plus a couple of client-side limits. These are compiled into the app. Saving one writes the database row and the admin panel shows it back to you, but nothing reads that row: the running app keeps using theCONFIG_*constant or itsNEXT_PUBLIC_*environment override. The Settings page shows a banner on these tabs saying so.
A build-tier registry entry is therefore a reference record of a compiled value: it documents the constant, validates what an admin types, and stores it. If a value has to be admin-editable, it needs a getSetting() reader and a runtime tier, not a build-tier row.
Resolution order and propagation
For a runtime-tier key:
resolve(key) = database value ?? environment override ?? shipped defaultThe database wins because that is the layer the admin panel edits. An environment variable of the same name comes next, so a container can pin a value without a database write. The shipped CONFIG_* constant is the last resort, which is why a fresh install with an empty system_settings table behaves exactly as it does today.
This chain does not apply to build-tier keys. Nothing calls the resolver for them, so the first term is inert: they are the compiled constant, or its NEXT_PUBLIC_* environment override, and nothing else. The one place the chain does run for a build key is resolveAppUrl() reading APP_URL for OAuth redirects, described above.
Reset to default
A field with a database override shows a Customized badge and a reset control next to it; an unmodified field shows Default. Reset deletes the database row rather than writing today’s default value back into it. If a later release ships a different default for that setting, an instance that reset to default picks up the new default automatically on upgrade; an instance that still has an explicit override does not, on purpose.
Export
The Export button downloads every setting that currently has a database override as JSON, useful for support requests (“what has this instance customized”) and for cloning a configuration into a second environment.
Operations
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| MAINTENANCE_MODE | Runtime | bool | false | Serves a maintenance page instead of the app to everyone except staff. Staff keep full access, including the login page and the admin panel, so this cannot lock you out. Scans, signups and new logins are refused for the duration. /api/v3/health keeps answering so your orchestrator does not restart the container in a loop. Also settable as the environment variable MAINTENANCE_MODE=true, which is the form to use when the database is down and this panel is unreachable. |
| MAINTENANCE_MESSAGE | Runtime | string | Shown on the maintenance page and returned with every refused request. Say what is happening and when you expect to be back. Leave empty for the built-in wording. | |
| PAUSE_SIGNUPS | Runtime | bool | false | Refuses new account creation at the API: the signup endpoint and first-time OAuth sign-in, which would otherwise create an account silently. Existing users are unaffected and can still sign in. Staff invitations still work, since those are an operator action rather than a public signup. |
| PAUSE_SIGNUPS_MESSAGE | Runtime | string | Reason shown to someone who tries to register while signups are paused. Leave empty for the built-in wording. | |
| PAUSE_LOGINS | Runtime | bool | false | Stops non-staff accounts starting a new session: password login, the second-factor step, and the Google, GitHub and Discord sign-in callbacks. Staff accounts are exempt, so you can always get back in. Sessions that already exist are NOT revoked and keep working: a pause is meant to be reversible, and signing everyone out is a separate, destructive act. Revoke sessions from the user panel if that is what you actually want. |
| PAUSE_LOGINS_MESSAGE | Runtime | string | Reason shown to someone who tries to sign in while logins are paused. Leave empty for the built-in wording. | |
| PAUSE_SCANNING | Runtime | bool | false | Refuses every new scan across all entry points: single, crawl, bulk, authenticated, GitHub repository, the signed-out demo scan, subdomain and crawl discovery, the live port sweep, and the scheduled-scan worker. Scans already running are left to finish rather than aborted, so nothing is left half-written; expect the queue to drain over the next few minutes. |
| PAUSE_SCANNING_MESSAGE | Runtime | string | Reason returned to anyone who submits a scan while scanning is paused. Leave empty for the built-in wording. |
General
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| APP_NAME | Build | string | VulnRadar | Shown in page titles, emails, and the TOTP issuer. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_APP_NAME in lib/config/config-values.ts and rebuild instead. |
| APP_SLUG | Build | string | vulnradar | Lowercase identifier used in generated filenames and machine-readable output. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_APP_SLUG in lib/config/config-values.ts and rebuild instead. |
| APP_DESCRIPTION | Build | string | Open-source web vulnerability scanner. Paste a URL, get 905+ deterministic checks back with the response evidence, a stable finding ID, and the config line that fixes it. | Default meta description for pages that do not set their own. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_APP_DESCRIPTION in lib/config/config-values.ts and rebuild instead. |
| TOTAL_CHECKS_LABEL | Build | string | 905+ | Marketing count of scanner checks, for example "750+". Reference only: nothing reads the saved value. The shipped label is regenerated from the real check count by scripts/knowledge/compile-checks-knowledge.mjs on every build, so it cannot drift. |
| APP_URL | Build | url | https://vulnradar.dev | Origin used for canonical URLs, social cards, and email links. Those read NEXT_PUBLIC_APP_URL (or the compiled CONFIG_APP_URL), not the value saved here, so set that env var and rebuild to change them. The GitHub/Google/Discord sign-in redirect is the exception: it reads this saved value live, no rebuild needed. No trailing slash. |
| APP_REPO | Build | string | VulnRadar/vulnradar.dev | GitHub "owner/name" used for the releases feed and the version check. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_APP_REPO in lib/config/config-values.ts and rebuild instead. |
| DISCORD_INVITE_URL | Build | url | https://discord.gg/Y7R6hdGbNe | Community link shown in the footer and support pages. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_DISCORD_INVITE_URL in the environment, or CONFIG_DISCORD_INVITE_URL in lib/config/config-values.ts, and rebuild instead. |
| CHROME_WEB_STORE_URL | Build | url | https://chromewebstore.google.com/detail/nbmifpplhhejdfokaglpomdnbaifngfj | Shown as the install link on the extension docs page once the listing is live. Leave empty to fall back to a packaged-release download. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_CHROME_WEB_STORE_URL in the environment, or CONFIG_CHROME_WEB_STORE_URL in lib/config/config-values.ts, and rebuild instead. |
| FIREFOX_ADDON_URL | Build | url | https://addons.mozilla.org/en-US/firefox/addon/vulnradar-website-scanner/ | Shown as the install link on the extension docs page once the listing is live. Leave empty to fall back to a packaged-release download. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_FIREFOX_ADDON_URL in the environment, or CONFIG_FIREFOX_ADDON_URL in lib/config/config-values.ts, and rebuild instead. |
| TERMS_UPDATED_AT | Runtime | string | 2026-08-14 | Date shown on the terms page, in YYYY-MM-DD form. Raising this past a user's stored acceptance date makes them re-accept on their next page load, no rebuild needed. A future date does not delay the prompt: it still applies now, so every current user is asked to re-accept immediately. |
| TERMS_CHANGE_SUMMARY | Runtime | string | We updated the Privacy Policy to accurately describe how session tokens, API keys, and 2FA codes are stored, disclosed staff account-access support, team data sharing, and GitHub repo AI review, and fixed stale technical details in the Terms and Acceptable Use Policy. | Short note shown in the "what changed" callout of the re-accept prompt, alongside Terms last updated. Leave empty to hide that callout. |
| SUPPORT_EMAIL | Runtime | [email protected] | Address shown to users who need help and used as the reply-to on support mail. | |
| LEGAL_EMAIL | Runtime | [email protected] | Contact address on the terms and privacy pages. | |
| SECURITY_EMAIL | Runtime | [email protected] | Address published in security.txt for vulnerability reports. | |
| NOREPLY_EMAIL | Runtime | [email protected] | From address on automated mail. Must be a domain your SMTP relay is allowed to send as. | |
| DATA_EXPORT_COOLDOWN_DAYS | Runtime | int | 30 | How often a user may request a fresh GDPR data export. Re-downloading an already-generated export is not affected. |
Social
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| SOCIAL_YOUTUBE_URL | Build | string | https://www.youtube.com/@VulnRadar | Public YouTube profile shown as an icon link in the footer and on the landing page, and published in the JSON-LD Organization node's sameAs array, which asserts the account is this organisation. Leave empty to omit YouTube everywhere; a value must be an absolute https URL (https://www.youtube.com/@handle) or it is ignored. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_SOCIAL_YOUTUBE_URL in the environment, or CONFIG_SOCIAL_YOUTUBE_URL in lib/config/config-values.ts, and rebuild instead. |
| SOCIAL_TIKTOK_URL | Build | string | https://www.tiktok.com/@vulnradar | Public TikTok profile shown as an icon link in the footer and on the landing page, and published in the JSON-LD Organization node's sameAs array, which asserts the account is this organisation. Leave empty to omit TikTok everywhere; a value must be an absolute https URL (https://www.tiktok.com/@handle) or it is ignored. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_SOCIAL_TIKTOK_URL in the environment, or CONFIG_SOCIAL_TIKTOK_URL in lib/config/config-values.ts, and rebuild instead. |
| SOCIAL_INSTAGRAM_URL | Build | string | https://www.instagram.com/vulnradar/ | Public Instagram profile shown as an icon link in the footer and on the landing page, and published in the JSON-LD Organization node's sameAs array, which asserts the account is this organisation. Leave empty to omit Instagram everywhere; a value must be an absolute https URL (https://www.instagram.com/handle/) or it is ignored. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_SOCIAL_INSTAGRAM_URL in the environment, or CONFIG_SOCIAL_INSTAGRAM_URL in lib/config/config-values.ts, and rebuild instead. |
| SOCIAL_X_URL | Build | string | https://x.com/vulnradardev | Public X profile shown as an icon link in the footer and on the landing page, and published in the JSON-LD Organization node's sameAs array, which asserts the account is this organisation. Leave empty to omit X everywhere; a value must be an absolute https URL (https://x.com/handle) or it is ignored. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_SOCIAL_X_URL in the environment, or CONFIG_SOCIAL_X_URL in lib/config/config-values.ts, and rebuild instead. |
| SOCIAL_MASTODON_URL | Build | string | Public Mastodon profile shown as an icon link in the footer and on the landing page, and published in the JSON-LD Organization node's sameAs array, which asserts the account is this organisation. Leave empty to omit Mastodon everywhere; a value must be an absolute https URL (https://infosec.exchange/@handle) or it is ignored. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_SOCIAL_MASTODON_URL in the environment, or CONFIG_SOCIAL_MASTODON_URL in lib/config/config-values.ts, and rebuild instead. | |
| SOCIAL_BLUESKY_URL | Build | string | Public Bluesky profile shown as an icon link in the footer and on the landing page, and published in the JSON-LD Organization node's sameAs array, which asserts the account is this organisation. Leave empty to omit Bluesky everywhere; a value must be an absolute https URL (https://bsky.app/profile/handle) or it is ignored. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_SOCIAL_BLUESKY_URL in the environment, or CONFIG_SOCIAL_BLUESKY_URL in lib/config/config-values.ts, and rebuild instead. | |
| SOCIAL_LINKEDIN_URL | Build | string | Public LinkedIn profile shown as an icon link in the footer and on the landing page, and published in the JSON-LD Organization node's sameAs array, which asserts the account is this organisation. Leave empty to omit LinkedIn everywhere; a value must be an absolute https URL (https://www.linkedin.com/company/handle) or it is ignored. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_SOCIAL_LINKEDIN_URL in the environment, or CONFIG_SOCIAL_LINKEDIN_URL in lib/config/config-values.ts, and rebuild instead. | |
| SOCIAL_REDDIT_URL | Build | string | Public Reddit profile shown as an icon link in the footer and on the landing page, and published in the JSON-LD Organization node's sameAs array, which asserts the account is this organisation. Leave empty to omit Reddit everywhere; a value must be an absolute https URL (https://www.reddit.com/r/community) or it is ignored. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_SOCIAL_REDDIT_URL in the environment, or CONFIG_SOCIAL_REDDIT_URL in lib/config/config-values.ts, and rebuild instead. | |
| SOCIAL_RSS_URL | Build | string | Feed shown alongside the social icons in the footer and on the landing page. This is the one entry that is NOT published in the JSON-LD sameAs array: sameAs asserts identity, and a feed is a document this site publishes rather than an account that is this site. Leave empty to omit it; a value must be an absolute https URL or it is ignored. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_SOCIAL_RSS_URL in the environment, or CONFIG_SOCIAL_RSS_URL in lib/config/config-values.ts, and rebuild instead. |
Branding
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| LOGO_URL | Build | string | /favicon.svg | Absolute URL or a path relative to the app root. Used in emails and structured data. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set LOGO_URL in the environment, or CONFIG_LOGO_URL in lib/config/config-values.ts, and rebuild instead. |
| PRIMARY_COLOR | Build | string | #60a5fa | Hex colour for the PWA theme and browser UI tint. Keep it in sync with --primary in globals.css. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_PRIMARY_COLOR in lib/config/config-values.ts and rebuild instead. |
| BACKGROUND_COLOR_DARK | Build | string | #0d1117 | Hex colour reported to the browser for dark mode. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_BACKGROUND_COLOR_DARK in lib/config/config-values.ts and rebuild instead. |
| BACKGROUND_COLOR_LIGHT | Build | string | #f5f7fa | Hex colour reported to the browser for light mode. Reference only: no code reads this value anywhere, here or from the compiled config, so editing it changes nothing. |
| FOOTER_TEXT | Build | string | VulnRadar - Security Scanner | Short line rendered in the site footer. Reference only: no code reads this value anywhere, here or from the compiled config, so editing it changes nothing. |
SEO
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| SEO_TAGLINE | Build | string | Web Vulnerability Scanner | Short pitch used as the default meta description and OpenGraph description. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_SEO_TAGLINE in lib/config/config-values.ts and rebuild instead. |
| SEO_KEYWORDS | Build | string | vulnerability scanner, web security scanner, website security check, security headers scanner, SSL TLS scanner, open source security scanner, OWASP scanner, API security testing, self-hosted vulnerability scanner, CI security scanning, vulnerability assessment, vulnerability assessment pricing, vulnerability management pricing, vulnerability scanning service pricing, api scanner online, online vulnerability scanner | Comma-separated terms to rank for. Keep them honest: stuffing unrelated terms is penalised. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_SEO_KEYWORDS in lib/config/config-values.ts and rebuild instead. |
| SEO_OG_IMAGE | Build | string | /og-image.png?v=5eccd8f1 | Path relative to the app root. 1200x630 renders without cropping on every major network. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_SEO_OG_IMAGE in lib/config/config-values.ts and rebuild instead. |
| SEO_OG_IMAGE_WIDTH | Build | int | 1200 | Pixel width declared to social networks. Must match the real image. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_SEO_OG_IMAGE_WIDTH in lib/config/config-values.ts and rebuild instead. |
| SEO_OG_IMAGE_HEIGHT | Build | int | 630 | Pixel height declared to social networks. Must match the real image. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_SEO_OG_IMAGE_HEIGHT in lib/config/config-values.ts and rebuild instead. |
| SEO_TWITTER_HANDLE | Build | string | Leave empty to omit the Twitter card attribution tags entirely. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_SEO_TWITTER_HANDLE in the environment, or CONFIG_SEO_TWITTER_HANDLE in lib/config/config-values.ts, and rebuild instead. | |
| SEO_GITHUB_URL | Build | url | https://github.com/VulnRadar/vulnradar.dev | Repository link used in structured data and the footer. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_SEO_GITHUB_URL in lib/config/config-values.ts and rebuild instead. |
| SEO_GOOGLE_VERIFICATION | Build | string | Search Console ownership token. Leave empty to skip the meta tag. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION in the environment, or CONFIG_SEO_GOOGLE_VERIFICATION in lib/config/config-values.ts, and rebuild instead. | |
| SEO_BING_VERIFICATION | Build | string | Bing Webmaster ownership token. Leave empty to skip the meta tag. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set NEXT_PUBLIC_BING_SITE_VERIFICATION in the environment, or CONFIG_SEO_BING_VERIFICATION in lib/config/config-values.ts, and rebuild instead. | |
| SEO_LOCALE | Build | string | en_US | Locale the content targets, for example "en_US". Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_SEO_LOCALE in lib/config/config-values.ts and rebuild instead. |
| SEO_LANGUAGE | Build | string | en | Value of the lang attribute on the html element, for example "en". Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_SEO_LANGUAGE in lib/config/config-values.ts and rebuild instead. |
| SEO_ORG_FOUNDING_YEAR | Build | string | 2025 | Year used in the JSON-LD Organization node. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_SEO_ORG_FOUNDING_YEAR in lib/config/config-values.ts and rebuild instead. |
| SEO_LICENSE | Build | string | GPL-3.0 | SPDX identifier published in the structured data. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_SEO_LICENSE in lib/config/config-values.ts and rebuild instead. |
Features
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| FEATURE_DEMO_MODE | Runtime | bool | true | Lets signed-out visitors run a limited number of scans. |
| FEATURE_TEAMS | Runtime | bool | true | Turning this off hides team pages from users who already belong to a team. |
| FEATURE_API_KEYS | Runtime | bool | true | Turning this off stops users issuing new keys. Existing integrations break. |
| FEATURE_WEBHOOKS | Runtime | bool | true | Outbound scan-complete notifications to user-supplied endpoints. |
| FEATURE_SCHEDULED_SCANS | Runtime | bool | true | Recurring scans on a cron schedule. |
| FEATURE_BULK_SCANS | Runtime | bool | true | Scanning many URLs in one submission. |
| FEATURE_PDF_REPORTS | Runtime | bool | true | Downloadable PDF export of a scan result. |
| FEATURE_EMAIL_NOTIFICATIONS | Runtime | bool | true | Transactional mail other than authentication. Security mail is always sent. |
| FEATURE_DOMAIN_VERIFICATION | Runtime | bool | true | DNS TXT-based domain ownership verification. Turning this off also disables active-probes scanning entirely, since that requires a verified domain and there would be no way to become verified. |
| DOMAIN_REVERIFY_ENABLED | Runtime | bool | true | Re-checks a verified domain's DNS TXT record periodically and revokes its active-probes permission if it no longer resolves -- closes the gap where a domain that changes hands keeps the original account's scan permission forever. On by default as a safety mechanism. |
| DOMAIN_REVERIFY_INTERVAL_DAYS | Runtime | int | 30 | A verified domain is re-checked once it's been this many days since its last check. |
| DOMAIN_REVERIFY_BATCH_SIZE | Runtime | int | 50 | Caps how many domains one worker tick re-checks, so a large domains table can't turn a single tick into an unbounded burst of DNS lookups. |
| POSTURE_DIGEST_ENABLED | Runtime | bool | true | Weekly cross-site summary email for users who opt in. Turning this off pauses the worker for everyone without changing anyone's individual opt-in. |
| SCHEDULED_BACKUP_ENABLED | Runtime | bool | false | Take an automatic pg_dump backup on a fixed interval, independent of migrations and the admin-triggered manual backup. Off by default: enable once BACKUP_DIR (and, for offsite copies, BACKUP_OFFSITE_UPLOAD_URL) are set up the way you want. |
Billing
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| BILLING_ENABLED | Runtime | bool | true | Turning this off gives every user the unlimited-mode limit and unlocks the plan-gated scan features. That half is live within the resolver TTL. The UI half is not: the pricing page and its nav link, the auth-page plan panel, the upgrade prompts and the /checkout guards all read the compiled CONFIG_BILLING_ENABLED, so they stay up until you set that to false in lib/config/config-values.ts and rebuild. |
| BILLING_FREE_LIMIT | Runtime | int | 25 | Scans per day on the free plan. Use -1 for unlimited. |
| BILLING_CORE_SUPPORTER_LIMIT | Runtime | int | 100 | Scans per day on the core supporter plan. Use -1 for unlimited. |
| BILLING_PRO_SUPPORTER_LIMIT | Runtime | int | 150 | Scans per day on the pro supporter plan. Use -1 for unlimited. |
| BILLING_ELITE_SUPPORTER_LIMIT | Runtime | int | 500 | Scans per day on the elite supporter plan. Use -1 for unlimited. |
| BILLING_FREE_RETENTION | Runtime | int | -1 | Days of scan history kept on the free plan. Use -1 to keep it forever. Lowering this deletes older scans on the next cleanup. |
| BILLING_CORE_SUPPORTER_RETENTION | Runtime | int | -1 | Days of scan history kept on the core supporter plan. Use -1 to keep it forever. |
| BILLING_PRO_SUPPORTER_RETENTION | Runtime | int | -1 | Days of scan history kept on the pro supporter plan. Use -1 to keep it forever. |
| BILLING_ELITE_SUPPORTER_RETENTION | Runtime | int | -1 | Days of scan history kept on the elite supporter plan. Use -1 to keep it forever. |
| BILLING_UNLIMITED_MODE_LIMIT | Runtime | int | -1 | Daily cap applied to everyone when billing is disabled. Use -1 for no cap. |
| BILLING_VERIFY_CODE_EXPIRY_MINUTES | Runtime | int | 5 | How long the emailed 6-digit billing verification code stays valid. Keep it at or below the billing verify rate-limit window. |
| GITHUB_REVIEW_FREE_TRIAL_WINDOW_HOURS | Runtime | int | 24 | How often the hidden free-plan GitHub AI code review trial renews. Only consulted for a plan whose GitHub review tokens/window is 0. |
| BILLING_STRIPE_WEBHOOK_LOOKUP_LIMIT | Runtime | int | 100 | How many existing Stripe webhook endpoints ensureStripeWebhook scans when checking whether this deployment's webhook already exists. Raise this if your Stripe account has more endpoints than the default covers. |
| BILLING_FREE_API_KEYS | Runtime | int | 1 | Active API keys a free-plan user may have at once. Use -1 for unlimited, 0 to disable API keys on this plan. |
| BILLING_CORE_SUPPORTER_API_KEYS | Runtime | int | 3 | Active API keys a core supporter may have at once. Use -1 for unlimited, 0 to disable API keys on this plan. |
| BILLING_PRO_SUPPORTER_API_KEYS | Runtime | int | 10 | Active API keys a pro supporter may have at once. Use -1 for unlimited, 0 to disable API keys on this plan. |
| BILLING_ELITE_SUPPORTER_API_KEYS | Runtime | int | -1 | Active API keys an elite supporter may have at once. Use -1 for unlimited, 0 to disable API keys on this plan. |
| BILLING_FREE_API_REQUESTS_PER_DAY | Runtime | int | 25 | Daily request quota assigned to a new API key on the free plan. Use -1 for unlimited. |
| BILLING_CORE_SUPPORTER_API_REQUESTS_PER_DAY | Runtime | int | 100 | Daily request quota assigned to a new API key on the core supporter plan. Use -1 for unlimited. |
| BILLING_PRO_SUPPORTER_API_REQUESTS_PER_DAY | Runtime | int | 5000 | Daily request quota assigned to a new API key on the pro supporter plan. Use -1 for unlimited. |
| BILLING_ELITE_SUPPORTER_API_REQUESTS_PER_DAY | Runtime | int | -1 | Daily request quota assigned to a new API key on the elite supporter plan. Use -1 for unlimited. |
| BILLING_FREE_TEAMS | Runtime | int | 0 | Teams a free-plan user may own at once. Use -1 for unlimited, 0 to disable teams on this plan. |
| BILLING_CORE_SUPPORTER_TEAMS | Runtime | int | 0 | Teams a core supporter may own at once. Use -1 for unlimited, 0 to disable teams on this plan. |
| BILLING_PRO_SUPPORTER_TEAMS | Runtime | int | 1 | Teams a pro supporter may own at once. Use -1 for unlimited, 0 to disable teams on this plan. |
| BILLING_ELITE_SUPPORTER_TEAMS | Runtime | int | 3 | Teams an elite supporter may own at once. Use -1 for unlimited, 0 to disable teams on this plan. |
| BILLING_FREE_TEAM_MEMBERS | Runtime | int | 0 | Members plus pending invites allowed on a team owned by a free-plan user. Use -1 for unlimited, 0 to disable teams on this plan. |
| BILLING_CORE_SUPPORTER_TEAM_MEMBERS | Runtime | int | 0 | Members plus pending invites allowed on a team owned by a core supporter. Use -1 for unlimited, 0 to disable teams on this plan. |
| BILLING_PRO_SUPPORTER_TEAM_MEMBERS | Runtime | int | 3 | Members plus pending invites allowed on a team owned by a pro supporter. Use -1 for unlimited, 0 to disable teams on this plan. |
| BILLING_ELITE_SUPPORTER_TEAM_MEMBERS | Runtime | int | 10 | Members plus pending invites allowed on a team owned by an elite supporter. Use -1 for unlimited, 0 to disable teams on this plan. |
| BILLING_FREE_WEBHOOKS | Runtime | int | 1 | Webhook endpoints a free-plan user may register. Use -1 for unlimited, 0 to disable webhooks on this plan. |
| BILLING_CORE_SUPPORTER_WEBHOOKS | Runtime | int | 1 | Webhook endpoints a core supporter may register. Use -1 for unlimited, 0 to disable webhooks on this plan. |
| BILLING_PRO_SUPPORTER_WEBHOOKS | Runtime | int | 5 | Webhook endpoints a pro supporter may register. Use -1 for unlimited, 0 to disable webhooks on this plan. |
| BILLING_ELITE_SUPPORTER_WEBHOOKS | Runtime | int | -1 | Webhook endpoints an elite supporter may register. Use -1 for unlimited, 0 to disable webhooks on this plan. |
| BILLING_FREE_SCHEDULED_SCANS | Runtime | int | 3 | Recurring scan schedules a free-plan user may keep active. Use -1 for unlimited, 0 to disable scheduled scans on this plan. |
| BILLING_CORE_SUPPORTER_SCHEDULED_SCANS | Runtime | int | 5 | Recurring scan schedules a core supporter may keep active. Use -1 for unlimited, 0 to disable scheduled scans on this plan. |
| BILLING_PRO_SUPPORTER_SCHEDULED_SCANS | Runtime | int | 10 | Recurring scan schedules a pro supporter may keep active. Use -1 for unlimited, 0 to disable scheduled scans on this plan. |
| BILLING_ELITE_SUPPORTER_SCHEDULED_SCANS | Runtime | int | -1 | Recurring scan schedules an elite supporter may keep active. Use -1 for unlimited, 0 to disable scheduled scans on this plan. |
| BILLING_FREE_BULK_SCAN_URLS | Runtime | int | 5 | URLs allowed in one bulk scan submission on the free plan. Use -1 for unlimited, 0 to disable bulk scans on this plan. |
| BILLING_CORE_SUPPORTER_BULK_SCAN_URLS | Runtime | int | 10 | URLs allowed in one bulk scan submission for a core supporter. Use -1 for unlimited, 0 to disable bulk scans on this plan. |
| BILLING_PRO_SUPPORTER_BULK_SCAN_URLS | Runtime | int | 25 | URLs allowed in one bulk scan submission for a pro supporter. Use -1 for unlimited, 0 to disable bulk scans on this plan. |
| BILLING_ELITE_SUPPORTER_BULK_SCAN_URLS | Runtime | int | 100 | URLs allowed in one bulk scan submission for an elite supporter. Use -1 for unlimited, 0 to disable bulk scans on this plan. |
| BILLING_FREE_CRAWL_PAGES | Runtime | int | 25 | Pages a free user may select to scan in one crawl. Crawl discovery can surface far more than this; the extras are listed but not selectable. |
| BILLING_CORE_SUPPORTER_CRAWL_PAGES | Runtime | int | 50 | Pages a core supporter may select to scan in one crawl. |
| BILLING_PRO_SUPPORTER_CRAWL_PAGES | Runtime | int | 100 | Pages a pro supporter may select to scan in one crawl. |
| BILLING_ELITE_SUPPORTER_CRAWL_PAGES | Runtime | int | 250 | Pages an elite supporter may select to scan in one crawl. Capped by the deployment-wide crawl scan page ceiling regardless of this value. |
| BILLING_FREE_GITHUB_REVIEW_TOKENS_PER_WINDOW | Runtime | int | 0 | AI tokens (prompt + completion) a free-plan user may spend on GitHub repo AI code review per AI_USAGE_WINDOW_HOURS window, using VulnRadar's own AI. 0 disables the feature on this plan. Never -1 (unlimited): bringing your own AI key bypasses this cap entirely instead. |
| BILLING_CORE_SUPPORTER_GITHUB_REVIEW_TOKENS_PER_WINDOW | Runtime | int | 200000 | AI tokens a core supporter may spend on GitHub repo AI code review per AI_USAGE_WINDOW_HOURS window, using VulnRadar's own AI. Never -1 (unlimited): bringing your own AI key bypasses this cap entirely instead. |
| BILLING_PRO_SUPPORTER_GITHUB_REVIEW_TOKENS_PER_WINDOW | Runtime | int | 1000000 | AI tokens a pro supporter may spend on GitHub repo AI code review per AI_USAGE_WINDOW_HOURS window, using VulnRadar's own AI. Never -1 (unlimited): bringing your own AI key bypasses this cap entirely instead. |
| BILLING_ELITE_SUPPORTER_GITHUB_REVIEW_TOKENS_PER_WINDOW | Runtime | int | 5000000 | AI tokens an elite supporter may spend on GitHub repo AI code review per AI_USAGE_WINDOW_HOURS window, using VulnRadar's own AI. A real finite cap: VulnRadar's AI usage runs through subsidized provider capacity, not an unlimited budget, so even the top tier is never -1 (unlimited) for this field. Bringing your own AI key bypasses this cap entirely instead. |
| BILLING_FREE_AI_TOKENS_PER_WINDOW | Runtime | int | 80000 | AI tokens (prompt + completion) a free-plan user may spend on AI chat, AI finding verification, and AI scan summaries combined per AI_USAGE_WINDOW_HOURS window, using VulnRadar's own AI. 0 disables these AI features on this plan. Never -1 (unlimited): bringing your own AI key bypasses this cap entirely instead. |
| BILLING_CORE_SUPPORTER_AI_TOKENS_PER_WINDOW | Runtime | int | 400000 | AI tokens a core supporter may spend on AI chat, AI finding verification, and AI scan summaries combined per AI_USAGE_WINDOW_HOURS window, using VulnRadar's own AI. Never -1 (unlimited): bringing your own AI key bypasses this cap entirely instead. |
| BILLING_PRO_SUPPORTER_AI_TOKENS_PER_WINDOW | Runtime | int | 2000000 | AI tokens a pro supporter may spend on AI chat, AI finding verification, and AI scan summaries combined per AI_USAGE_WINDOW_HOURS window, using VulnRadar's own AI. Never -1 (unlimited): bringing your own AI key bypasses this cap entirely instead. |
| BILLING_ELITE_SUPPORTER_AI_TOKENS_PER_WINDOW | Runtime | int | 8000000 | AI tokens an elite supporter may spend on AI chat, AI finding verification, and AI scan summaries combined per AI_USAGE_WINDOW_HOURS window, using VulnRadar's own AI. A real finite cap: VulnRadar's AI usage runs through subsidized provider capacity, not an unlimited budget, so even the top tier is never -1 (unlimited) for this field. Bringing your own AI key bypasses this cap entirely instead. |
| BILLING_FREE_BROWSERBASE_MINUTES_PER_MONTH | Runtime | int | 30 | Live-browser session minutes a free-plan user may use per calendar month (see lib/billing/browserbase-usage.ts). 0 disables the feature on this plan. Never -1 (unlimited): Browserbase is a real paid third-party API. |
| BILLING_CORE_SUPPORTER_BROWSERBASE_MINUTES_PER_MONTH | Runtime | int | 60 | Live-browser session minutes a core supporter may use per calendar month. |
| BILLING_PRO_SUPPORTER_BROWSERBASE_MINUTES_PER_MONTH | Runtime | int | 150 | Live-browser session minutes a pro supporter may use per calendar month. |
| BILLING_ELITE_SUPPORTER_BROWSERBASE_MINUTES_PER_MONTH | Runtime | int | 400 | Live-browser session minutes an elite supporter may use per calendar month. A real finite cap: Browserbase is a real paid third-party API, not subsidized capacity, so even the top tier is never -1 (unlimited) for this field. |
| BILLING_FREE_CONCURRENT_SCANS | Runtime | int | 1 | Max scans a free-plan user may have running (status pending/running) at once. VulnRadar runs as one persistent process with no job queue, so this is a real shared-capacity limit. Use -1 for unlimited. |
| BILLING_CORE_SUPPORTER_CONCURRENT_SCANS | Runtime | int | 2 | Max scans a core supporter may have running at once. |
| BILLING_PRO_SUPPORTER_CONCURRENT_SCANS | Runtime | int | 3 | Max scans a pro supporter may have running at once. |
| BILLING_ELITE_SUPPORTER_CONCURRENT_SCANS | Runtime | int | 5 | Max scans an elite supporter may have running at once. Kept modest even at the top tier -- this shares one process's resources with every other scan currently running, for every user. |
Rate Limits
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| RATE_LIMIT_LOGIN_ATTEMPTS | Runtime | int | 5 | Failed logins allowed from one IP before it is locked out for the rest of the window. |
| RATE_LIMIT_LOGIN_WINDOW_MINUTES | Runtime | int | 15 | Length of the login rate-limit bucket. |
| RATE_LIMIT_SIGNUP_ATTEMPTS | Runtime | int | 3 | Accounts one IP may create per window. |
| RATE_LIMIT_SIGNUP_WINDOW_MINUTES | Runtime | int | 60 | Length of the signup rate-limit bucket. |
| RATE_LIMIT_FORGOT_PASSWORD_ATTEMPTS | Runtime | int | 3 | Reset emails one IP may trigger per window. Also gates verification resends. |
| RATE_LIMIT_FORGOT_PASSWORD_WINDOW_MINUTES | Runtime | int | 10 | Length of the password reset rate-limit bucket. |
| RATE_LIMIT_SIGNUP_EMAIL_ATTEMPTS | Runtime | int | 5 | Signups allowed per window for one email address, counted on the normalized address rather than the caller's IP. This is the bucket that survives an attacker rotating IPs through a residential proxy pool, so tighten this one during a signup flood. |
| RATE_LIMIT_SIGNUP_EMAIL_WINDOW_MINUTES | Runtime | int | 60 | Length of the per-email signup rate-limit bucket. |
| RATE_LIMIT_FORGOT_PASSWORD_EMAIL_ATTEMPTS | Runtime | int | 3 | Reset emails allowed per window for one email address, counted on the normalized address rather than the caller's IP. Stops a NAT or botnet spamming resets for many distinct addresses from one source. |
| RATE_LIMIT_FORGOT_PASSWORD_EMAIL_WINDOW_MINUTES | Runtime | int | 60 | Length of the per-email password reset rate-limit bucket. |
| RATE_LIMIT_DOMAIN_ADD_ATTEMPTS | Runtime | int | 20 | Domains one user may add for verification per window. This number is quoted in the public API docs, so an edit here changes what the docs describe. |
| RATE_LIMIT_DOMAIN_ADD_WINDOW_MINUTES | Runtime | int | 60 | Length of the domain-add rate-limit bucket. |
| RATE_LIMIT_DOMAIN_VERIFY_ATTEMPTS | Runtime | int | 30 | DNS verification checks one user may run per window. Kept above the domain-add cap because a user fixing a typo'd TXT record legitimately retries. Quoted in the public API docs. |
| RATE_LIMIT_DOMAIN_VERIFY_WINDOW_MINUTES | Runtime | int | 60 | Length of the domain-verification rate-limit bucket. |
| RATE_LIMIT_API_REQUESTS | Runtime | int | 100 | General API calls allowed per window per caller. |
| RATE_LIMIT_API_WINDOW_MINUTES | Runtime | int | 60 | Length of the general API rate-limit bucket. |
| RATE_LIMIT_SCAN_REQUESTS | Runtime | int | 100 | Single-URL scans allowed per window per user. Separate from the daily plan quota. |
| RATE_LIMIT_SCAN_WINDOW_MINUTES | Runtime | int | 60 | Length of the scan rate-limit bucket. |
| RATE_LIMIT_BULK_SCAN_REQUESTS | Runtime | int | 10 | Bulk submissions allowed per window per user. Each submission may carry many URLs. |
| RATE_LIMIT_BULK_SCAN_WINDOW_MINUTES | Runtime | int | 60 | Length of the bulk scan rate-limit bucket. |
| DEFAULT_API_KEY_DAILY_LIMIT | Runtime | int | 50 | Requests per day granted to a newly issued API key. Existing keys keep the limit they were created with. |
| RATE_LIMIT_BROWSER_SESSION_ATTEMPTS | Runtime | int | 20 | Live BrowserBase sessions one user may create per window. BrowserBase is metered, so this bounds real cost from a compromised session cookie. |
| RATE_LIMIT_BROWSER_SESSION_WINDOW_MINUTES | Runtime | int | 60 | Length of the browser session rate-limit bucket. |
| RATE_LIMIT_AI_CHAT_ATTEMPTS | Runtime | int | 60 | Support chat messages one user may send per window. Bounds AI provider cost from a single account. |
| RATE_LIMIT_AI_CHAT_WINDOW_MINUTES | Runtime | int | 60 | Length of the AI chat rate-limit bucket. |
| RATE_LIMIT_AI_VERIFY_ATTEMPTS | Runtime | int | 20 | AI finding-verification requests one user may send per window, shared by /api/v3/scan/verify and /api/v3/scan/verify-batch. Each request fans out into one AI call per finding, so this bounds cost from a single account. |
| RATE_LIMIT_AI_VERIFY_WINDOW_MINUTES | Runtime | int | 60 | Length of the AI verify rate-limit bucket. |
| RATE_LIMIT_AI_SUMMARY_ATTEMPTS | Runtime | int | 20 | AI scan-summary generate/regenerate requests one user may send per window. A cached summary is returned without consuming this limit; only real generation calls count. |
| RATE_LIMIT_AI_SUMMARY_WINDOW_MINUTES | Runtime | int | 60 | Length of the AI summary rate-limit bucket. |
| RATE_LIMIT_ADMIN_REAUTH_ATTEMPTS | Runtime | int | 10 | Password attempts allowed at the admin panel's re-auth gate before it locks out for the rest of the window. |
| RATE_LIMIT_ADMIN_REAUTH_WINDOW_MINUTES | Runtime | int | 15 | Length of the admin re-auth rate-limit bucket. |
| RATE_LIMIT_BILLING_VERIFY_ATTEMPTS | Runtime | int | 5 | Attempts allowed at the 6-digit billing verification code before lockout. Keep this low: the code space is small enough to brute-force without a tight gate. |
| RATE_LIMIT_BILLING_VERIFY_WINDOW_MINUTES | Runtime | int | 5 | Length of the billing verification rate-limit bucket. Should stay at or below the code's own validity window. |
| RATE_LIMIT_TEAM_INVITE_ATTEMPTS | Runtime | int | 20 | Invite emails one team owner may send per window. Bounds email spam from a compromised or malicious account. |
| RATE_LIMIT_TEAM_INVITE_WINDOW_MINUTES | Runtime | int | 60 | Length of the team invite rate-limit bucket. |
| RATE_LIMIT_SCAN_TAGS_ATTEMPTS | Runtime | int | 60 | Tag add/remove calls one user may make per window (POST /api/v3/scan/tags). |
| RATE_LIMIT_SCAN_TAGS_WINDOW_MINUTES | Runtime | int | 60 | Length of the scan-tag rate-limit bucket. |
| RATE_LIMIT_PUBLIC_SCANS_ATTEMPTS | Runtime | int | 60 | Per-IP cap on GET /api/v3/public-scans, the unauthenticated public directory. |
| RATE_LIMIT_PUBLIC_SCANS_WINDOW_MINUTES | Runtime | int | 1 | Length of the Public Scans directory rate-limit bucket. |
| RATE_LIMIT_2FA_VERIFY_ATTEMPTS | Runtime | int | 5 | 6-digit 2FA/TOTP code guesses allowed per userId before lockout for the rest of the window. Keep this low: the code space is small enough to brute-force without a tight gate. |
| RATE_LIMIT_2FA_VERIFY_WINDOW_MINUTES | Runtime | int | 5 | Length of the 2FA verify rate-limit bucket. |
Scanning
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| MAX_URL_LENGTH | Runtime | int | 2048 | Characters allowed in a submitted URL before it is rejected. |
| MAX_URLS_BULK | Runtime | int | 100 | URLs accepted in one bulk submission. |
| SCHEDULE_WORKER_BATCH_CONCURRENCY | Runtime | int | 5 | How many due scheduled scans run at once per polling tick. Keeps a large backlog from launching hundreds of simultaneous scans. |
| SCAN_TIMEOUT_SECONDS | Runtime | int | 300 | Hard ceiling for a single-URL scan. |
| BULK_SCAN_TIMEOUT_SECONDS | Runtime | int | 1800 | Hard ceiling for a whole bulk submission. |
| CRAWL_SCAN_TIMEOUT_SECONDS | Runtime | int | 900 | Hard ceiling for a whole crawl submission (discovery plus every page). |
| SCAN_STATUS_POLL_INTERVAL_MS | Runtime | int | 2000 | Suggested interval for a client polling GET /api/v3/scan/status/:id. Not enforced server-side. |
| SCAN_FETCH_TIMEOUT_MS | Runtime | int | 15000 | Abort timeout for the primary target-page fetch in the demo, bulk, and authenticated scan routes. Raise this to scan slow or latency-heavy targets instead of getting a silent "Could not reach the target URL" failure. |
| SCAN_ASYNC_CHECKS_TIMEOUT_MS | Runtime | int | 15000 | Ceiling for the DNS/TLS/reputation async-checks layer, in every scan route: the main single-URL pipeline as well as the demo, bulk, and authenticated ones. A check still running past this is dropped from the result rather than delaying the response. |
| SCAN_RESPONSE_BODY_MAX_BYTES | Runtime | int | 1048576 | Bytes read from a scanned page's response body before body-based checks run, in the demo, bulk, and authenticated scan routes. Raise this for large single-page apps or content-heavy sites. |
| SUBDOMAIN_CACHE_TTL_HOURS | Runtime | int | 4 | How long discovered-subdomain results are cached before a fresh crt.sh/hackertarget/subdomain.center/rapiddns lookup runs. Shorten for rapidly changing infrastructure, lengthen to cut third-party API calls. |
| SUBDOMAIN_DISCOVERY_HTTP_CONCURRENCY | Runtime | int | 25 | Simultaneous HEAD-request reachability checks fired per batch during subdomain discovery. Lower this on constrained outbound bandwidth, raise it for faster discovery with more headroom. |
| PORT_SCAN_CONCURRENCY | Runtime | int | 24 | Simultaneous TCP connects during the curated port sweep. Lower this if an IDS or firewall in front of your own estate flags the default as a port scan; the sweep just takes longer. |
| PORT_SCAN_CONNECT_TIMEOUT_MS | Runtime | int | 1500 | How long one port may stay silent before it is recorded as closed. Raise this for targets a continent away, where the default is short enough that a filtered port on a slow path looks closed. Raise the overall deadline with it. |
| PORT_SCAN_BANNER_READ_WINDOW_MS | Runtime | int | 400 | After a port answers, how long to listen for the banner it volunteers before closing the socket. The sweep never writes to the target, so this only decides how much a slow-talking service gets to say. |
| PORT_SCAN_OVERALL_DEADLINE_MS | Runtime | int | 12000 | Wall-clock ceiling for a whole sweep. Must stay comfortably above (ports / concurrency) waves of the connect timeout, or the sweep is cut short and reports fewer ports. It never fails a scan. |
| PORT_SCAN_MAX_BANNER_BYTES | Runtime | int | 256 | Bytes of service banner kept per open port. Bounds what a chatty or hostile service can push into a stored scan result. |
| CRAWL_DISCOVER_MAX_PAGES | Runtime | int | 500 | How many pages the link-following crawl-discovery endpoint (POST /api/v3/scan/crawl/discover) will visit before stopping. Distinct from the crawl scan job's own page cap below. |
| CRAWL_DISCOVER_FETCH_TIMEOUT_MS | Runtime | int | 8000 | Per-page fetch abort timeout used while crawling for page discovery. |
| CRAWL_DISCOVER_BODY_MAX_BYTES | Runtime | int | 524288 | How much HTML is read per page while extracting links during crawl discovery. Raise this for link-heavy markup past the default cap. |
| CRAWL_SCAN_MAX_PAGES | Runtime | int | 500 | Hard ceiling on how many pages a single crawl scan (POST /api/v3/scan/crawl) will ever cover. |
| CRAWL_PAGE_FETCH_TIMEOUT_MS | Runtime | int | 8000 | Per-page fetch timeout during link discovery for a crawl scan job. Raise this for slower internal or distant targets so pages are not dropped as unreachable. |
| SCANNER_MAX_RESPONSE_BODY_BYTES | Runtime | int | 1048576 | Bytes read from a page's response body before content checks run, shared by the single-URL and crawl scan pipelines. |
| SCANNER_ASYNC_BRANCH_TIMEOUT_MS | Runtime | int | 12000 | Ceiling for one top-level branch (DNS, TLS, or live-fetch) of the async checks layer. A branch still running past this is reported as incomplete rather than blocking the others. |
| CVE_KEV_CACHE_TTL_HOURS | Runtime | int | 12 | How long the CISA Known Exploited Vulnerabilities catalog is cached before a fresh fetch runs. |
| SCANNER_BUCKET_PROBE_MAX_CANDIDATES | Runtime | int | 5 | Distinct S3/GCS/Azure bucket hostnames actively probed for public listing per scan. Raise this for sites referencing many distinct buckets. |
| SCANNER_THREAT_INTEL_API_TIMEOUT_MS | Runtime | int | 5000 | Timeout for outbound calls to the CISA KEV feed, the FIRST.org EPSS API, and the Google Web Risk reputation lookup. |
| SCHEDULE_WORKER_CLAIM_LIMIT | Runtime | int | 200 | Due schedules claimed per polling tick by the scheduled-scans worker. A backlog larger than this just spreads across additional ticks instead of all being claimed at once. |
| HISTORY_LIST_MAX_ROWS | Runtime | int | 100 | Row cap on the main scan-history list endpoint (GET /api/v3/history). |
| BULK_SCAN_CLIENT_URL_LIMIT | Build | int | 10 | Client-enforced cap on how many URLs may be pasted into the bulk-scan form. Deliberately independent of the server-enforced maximum URLs per bulk scan above; the form fans out one request per URL. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_BULK_SCAN_CLIENT_URL_LIMIT in lib/config/config-values.ts and rebuild instead. |
| SCAN_AUTH_ENABLED | Runtime | bool | true | Lets a caller supply login material with a single scan request so the scanner can log in first. Fully ephemeral: nothing is ever stored. Turning this off hides the feature from the deployment. |
| SCAN_AUTH_MAX_SECRET_LENGTH | Runtime | int | 4096 | Characters allowed in one secret value (password, header value, cookie value) in a scan request. |
| SCAN_AUTH_MAX_COOKIES | Runtime | int | 20 | How many cookies a caller may attach to one authenticated scan request. |
| SCAN_AUTH_VERIFY_TIMEOUT_MS | Runtime | int | 10000 | How long to wait for the verification fetch that proves the login worked. |
| SCAN_AUTH_MAX_LOGIN_BODY_BYTES | Runtime | int | 524288 | Bytes read from a login or verification page. Only needs to be large enough to reach the CSRF token. |
| SCAN_AUTH_MAX_COOKIE_AGE_SECONDS | Runtime | int | 3600 | Longest lifetime the cookie jar honours, however long the target says its cookie lives. |
| SCAN_AUTH_BASELINE_DIFF_BYTES | Runtime | int | 256 | Byte difference between the anonymous and authenticated fetch before the login counts as verified. |
| SCAN_AUTH_BROWSER_NAV_TIMEOUT_MS | Runtime | int | 20000 | How long to wait for the login page's load event in the browser-driven form login path. |
| SCAN_AUTH_BROWSER_SETTLE_MS | Runtime | int | 1500 | How long the page must go without a new network request after load before it counts as fully rendered. |
| SCAN_AUTH_BROWSER_MAX_WAIT_MS | Runtime | int | 25000 | Hard ceiling on the whole wait-for-load step, load event plus settle window included. |
| SCAN_AUTH_BROWSER_SESSION_TIMEOUT_SECONDS | Runtime | int | 90 | BrowserBase session lifetime requested for the login handshake. Short: the browser only needs to render the login page and read its cookies. |
| SCAN_AUTH_BROWSER_MAX_HTML_CHARS | Runtime | int | 500000 | Characters of rendered HTML read from the browser for form detection and post-submit verification. |
| NEW_ACCOUNT_SCANS_PRIVATE | Runtime | bool | false | When on, accounts created from now on start with 'Scans are public by default' switched off, so their scans stay off the public /host page until they choose otherwise. Existing accounts are not changed. |
Authentication
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| SESSION_TIMEOUT_DAYS | Runtime | int | 7 | How long a session stays valid server-side before the user must sign in again. |
| SESSION_MAX_AGE_DAYS | Runtime | int | 7 | Browser-side lifetime of the session cookie. Keep it equal to or below the session lifetime. |
| PASSWORD_MIN_LENGTH | Runtime | int | 12 | Shortest password accepted at signup and password reset. Does not affect existing passwords. |
| PASSWORD_RESET_HOURS | Runtime | int | 1 | How long a reset link stays usable. Shorter is safer. |
| EMAIL_VERIFICATION_HOURS | Runtime | int | 24 | How long a verification link stays usable. |
| DEVICE_TRUST_DAYS | Runtime | int | 30 | How long a device may skip the second factor after the user ticks Remember this device. |
| DEVICE_TRUST_MAX_AGE_DAYS | Runtime | int | 30 | Browser-side lifetime of the trusted-device cookie. Keep it equal to the device trust duration. |
| 2FA_PENDING_MAX_AGE_SECONDS | Runtime | int | 300 | How long a half-finished login may sit at the second-factor prompt before it expires. |
| EMAIL_2FA_CODE_EXPIRY_MINUTES | Runtime | int | 10 | How long an emailed 6-digit two-factor code stays valid, across the password login, OAuth login, and manual resend flows. |
| EMAIL_2FA_RESEND_COOLDOWN_SECONDS | Runtime | int | 60 | Minimum wait enforced between emailed 2FA code resend requests. Raise this on a slower outbound mail queue so users are not told to retry before the previous code has arrived. |
| SESSION_IP_BINDING_ENABLED | Runtime | bool | false | Ends a session and asks for login again when a request arrives from a different subnet than the one it started on. Off by default: mobile networks and wifi-to-cellular handoffs rotate IPs mid-session for real users. |
| SESSION_IP_BINDING_IPV4_PREFIX | Runtime | int | 24 | How much of the IPv4 address must match to count as the same network. /24 (the default) tolerates a carrier rotating the last octet; raise it toward /32 for a stricter check. |
| SESSION_IP_BINDING_IPV6_PREFIX | Runtime | int | 48 | IPv6 equivalent of the IPv4 subnet size setting. /48 is the typical residential/ISP allocation boundary. |
| API_KEY_IP_BINDING_ENABLED | Runtime | bool | false | Declines API requests from a subnet other than the one the key was first used from; the key itself is not revoked. Off by default: a key used from GitHub Actions or another shared-runner CI provider does not have a fixed IP. |
| API_KEY_IP_BINDING_IPV4_PREFIX | Runtime | int | 32 | How much of the IPv4 address must match. Defaults to /32 (exact match) since a deployment turning this on is expected to have a genuinely fixed server IP. |
| API_KEY_IP_BINDING_IPV6_PREFIX | Runtime | int | 128 | IPv6 equivalent of the IPv4 subnet size setting. Defaults to /128 (exact match). |
AI
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| AI_CHAT_MAX_TOKENS | Runtime | int | 8192 | Maximum tokens the support chat may generate per reply. |
| AI_CHAT_HISTORY_DAYS | Runtime | int | 90 | How long chat conversations are kept before cleanup deletes them. |
| AI_CHAT_MAX_INPUT_LENGTH | Runtime | int | 2000 | Longest message a user may send to the support chat. |
| AI_VERIFY_MAX_TOKENS | Runtime | int | 6000 | Tokens allowed per finding. Reasoning models spend up to half of this thinking before they answer, so a finding that needs real cross-referencing can need 4000+ to still leave room for a complete answer. |
| AI_VERIFY_CHUNK_SIZE | Runtime | int | 10 | How many findings are sent to the AI in one request. Smaller chunks mean more calls but a lower risk of a long scan running out of tokens before every finding gets a verdict. |
| AI_REASONING_TIMEOUT_MULTIPLIER | Runtime | int | 3 | Reasoning models spend most of their time before the first token, so every AI timeout below is multiplied by this when the selected model will think. Raise it if verdicts, summaries or tag suggestions started going missing after switching to a thinking model. |
| AI_VERIFY_CALL_TIMEOUT_MS | Runtime | int | 60000 | How long to wait for the AI provider on a single finding. |
| AI_VERIFY_PROBE_TIMEOUT_MS | Runtime | int | 8000 | How long to wait for the initial HTTP probe of the target site. |
| AI_VERIFY_TOTAL_TIMEOUT_MS | Runtime | int | 900000 | Ceiling for the whole deep-scan batch. Calls that have not settled are reported as timed out. Keep the /api/v3/scan/verify and /api/v3/scan/verify-batch routes' own maxDuration above whatever this is set to. |
| AI_VERIFY_BATCH_MAX_FINDINGS | Runtime | int | 50 | Maximum findings[] length accepted by one POST /api/v3/scan/verify-batch request. Unlike /api/v3/scan/verify, this route takes an arbitrary caller-supplied array, so this cap bounds AI spend from a single request. |
| AI_VERIFY_PROBE_BODY_SNIPPET_CHARS | Runtime | int | 24576 | How much of the live-probed page body is sent to the AI verifier for cross-checking body-content findings. Raise for more accurate verification at higher token cost, lower for cheaper, faster calls. |
| AI_SUMMARY_MAX_TOKENS | Runtime | int | 6000 | Tokens allowed for the one-shot 3-5 sentence scan summary. Reasoning models spend up to half of this thinking before they answer, so too small a budget truncates the visible summary itself, not just the reasoning. |
| AI_SUMMARY_CALL_TIMEOUT_MS | Runtime | int | 40000 | How long to wait for the AI provider on the scan summary call. Raise this if summaries are failing with a timeout after the token budget above was increased. |
| AI_SUMMARY_TOP_FINDINGS_LIMIT | Runtime | int | 6 | Highest-severity findings included in the scan-summary prompt, so a scan with hundreds of findings still produces a small prompt. |
| AI_SUMMARY_MAX_OUTPUT_CHARS | Runtime | int | 4000 | Character-length backstop on the cleaned summary text, a second ceiling after the token budget above in case a model ignores the sentence-count instruction. Keep in sync with the token budget above if you raise it further. |
| AI_AUTOTAG_CALL_TIMEOUT_MS | Runtime | int | 12000 | HTTP timeout for the fire-and-forget AI auto-tag-suggestion call. Raise this on a slower local/self-hosted model (Ollama, LM Studio) that otherwise silently returns no tags. |
| AI_AUTOTAG_MAX_TOKENS | Runtime | int | 120 | Output token budget for the auto-tag suggestion call. A reasoning model spending tokens on its thinking block before the tag names can exhaust a small budget and return zero usable tags. |
| AI_AUTOTAG_TOP_FINDINGS_LIMIT | Runtime | int | 15 | Findings included in the auto-tag prompt for a scan that matched none of the built-in tagging rules. |
| AI_AUTOTAG_MAX_SUGGESTIONS | Runtime | int | 2 | Caps how many AI-suggested tags get saved per scan. Tied to the "1 to 2 tags" instruction in the model's system prompt, so raising this alone only changes the ceiling on what's kept, not model behavior. |
| AI_USAGE_WINDOW_HOURS | Runtime | int | 5 | Length of the fixed window the aiTokensPerWindow AND githubReviewTokensPerWindow plan limits both reset on -- shared by AI chat, AI finding verification, AI scan summaries, and GitHub repo AI code review. Windows are fixed-length buckets anchored to the Unix epoch, not a rolling window -- a value that evenly divides 24 (e.g. 1, 2, 4, 6, 8, 12, 24) resets at the same UTC clock time every day; the shipped default of 5 does not evenly divide a day, so its reset time drifts rather than landing on local midnight, but every call still lands in exactly one fixed, deterministic window. |
| GITHUB_REVIEW_MAX_TOKENS_PER_RUN | Runtime | int | 300000 | Hard cap on estimated tokens (prompt content) for one GitHub repo AI code review run, regardless of plan, remaining monthly quota, or whether the user brings their own AI key. A repo whose selected files estimate over this is rejected upfront rather than silently truncated. |
| GITHUB_REVIEW_CALL_TIMEOUT_MS | Runtime | int | 60000 | Per-batch HTTP timeout for each AI code-review call. Raise this if a provider is slow on large file batches. |
| GITHUB_REVIEW_MAX_TOKENS_PER_CALL | Runtime | int | 4000 | Output token budget for each individual GitHub-review AI call, distinct from the per-run token ceiling above. A reasoning model spending tokens on thinking before its JSON findings array can need this raised. |
| GITHUB_REVIEW_PER_CALL_CHAR_BUDGET | Runtime | int | 40000 | How many source-file characters get grouped into one AI review call before starting a new batch. Raise this for a larger-context model to cut the number of calls per repo scan; lower it for a smaller-context model to avoid truncation. |
| GITHUB_REVIEW_MAX_FILES | Runtime | int | 300 | Maximum number of files (after skipping binaries and vendor/build directories) fetched from a repo for one scan run, for both the pattern-based secrets pass and the AI review pass. |
| GITHUB_REVIEW_MAX_TOTAL_BYTES | Runtime | int | 5000000 | Total byte budget across every file fetched from a repo for one scan run. Files are skipped once this is exhausted, largest-first pruning is not attempted. |
| GITHUB_REVIEW_MAX_FILE_BYTES | Runtime | int | 300000 | A single file larger than this is skipped entirely (treated the same as a binary file) rather than fetched and scanned. |
Demo
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| DEMO_SCAN_LIMIT | Runtime | int | 5 | Scans a signed-out visitor may run before being asked to sign up. |
| DEMO_WINDOW_HOURS | Runtime | int | 12 | Length of the demo scan bucket. |
Advanced
| Setting | Tier | Type | Default | Description |
|---|---|---|---|---|
| VERSION_COOKIE_MAX_AGE_DAYS | Runtime | int | 365 | How long a dismissed release notice stays dismissed. |
| NOTIFICATION_POLL_INTERVAL_MS | Runtime | int | 300000 | How often the header bell polls for new site-wide and per-user notifications (e.g. team invites). |
| NOTIFICATION_DEFAULT_DISMISS_DAYS | Runtime | int | 365 | How long a dismissed bell notification stays dismissed when it does not set its own duration. |
| BROWSERBASE_MAX_TTL_SECONDS | Runtime | int | 360 | Ceiling on a live browser session. BrowserBase is metered, so raising this raises real cost. |
| BROWSERBASE_DEFAULT_TTL_SECONDS | Runtime | int | 360 | Lifetime requested when a session is created. Keep it at or below the hard cap. |
| BROWSERBASE_LOGS_POLL_INTERVAL_MS | Runtime | int | 3000 | How often the live browser session viewer page polls for new network/console log lines. |
| BROWSERBASE_MAX_CONCURRENT_SESSIONS | Runtime | int | 25 | How many live browser sessions this Browserbase account can run at once, across every user combined. Match this to the account's actual plan. -1 disables the cap (no queueing). |
| BROWSERBASE_QUEUE_MAX_WAIT_MS | Runtime | int | 30000 | How long a session-creation request waits for a free concurrency slot before giving up with a 503. |
| MAX_NAME_LENGTH | Runtime | int | 255 | Characters accepted in a display name. The database column is 255. |
| MAX_DESCRIPTION_LENGTH | Runtime | int | 1000 | Characters accepted in free-text description fields. |
| MAX_TEAM_NAME_LENGTH | Runtime | int | 255 | Characters accepted in a team name. The database column is 255. |
| MAX_TAGS_PER_SCAN | Runtime | int | 10 | Tags a user may attach to one scan. |
| MAX_TAG_LENGTH | Runtime | int | 30 | Characters accepted in one scan tag. Longer input is truncated, not rejected. |
| TEAM_INVITE_EXPIRY_DAYS | Runtime | int | 7 | How long a team invite link stays usable before it must be resent. |
| ENGINE_FEEDBACK_NOISE_THRESHOLD_PERCENT | Runtime | int | 20 | The Admin Engine Feedback panel flags a check whose false-positive rate, or an auto-tag rule whose dismissal rate, is at or above this percentage -- provided it also clears the minimum sample size below. Reporting only for auto-tag rules; for checks, this same threshold also gates adaptive confidence discounting (see Adaptive confidence scoring below). |
| ENGINE_FEEDBACK_MIN_SAMPLE_SIZE | Runtime | int | 5 | Feedback submissions (per check) or rule firings (per auto-tag rule) required before the Admin Engine Feedback panel will flag it as noisy, so one user's feedback on one scan can't flag a check on its own. Also gates adaptive confidence discounting for checks (see below). |
| ADAPTIVE_CONFIDENCE_ENABLED | Runtime | bool | true | Automatically discounts a finding's confidence when its check is flagged by the two engine-feedback settings above (a real, statistically meaningful false-positive rate from user feedback). Off falls back to each check's static, hand-set confidence forever. |
| PAGINATION_DEFAULT_PAGE_SIZE | Runtime | int | 20 | Rows returned when a request does not ask for a page size. |
| BADGE_CACHE_MAX_AGE_SECONDS | Runtime | int | 3600 | How long a CDN or browser caches the embeddable SVG scan-status badge and its JSON stats before re-fetching. Shorten for fresher badges on a frequently-rescanned target, lengthen to cut load on a high-traffic README badge. |
| ADMIN_ALERT_WEBHOOK_URL | Runtime | string | Receives a signed POST for critical system events (boot-time schema failures, scans orphaned by an unclean shutdown). Points at any endpoint that accepts an incoming webhook -- Slack, Discord, PagerDuty, a SIEM. Leave empty to disable. | |
| ADMIN_ALERT_WEBHOOK_SECRET | Runtime | string | Optional. When set, each alert is signed the same way customer-facing webhooks are (X-VulnRadar-Signature: sha256=<hmac>), so the receiver can verify it actually came from this app. | |
| ENFORCE_STAFF_2FA | Runtime | bool | false | When on, a staff or admin account without two-factor enabled loses access to every /admin route (they can still reach their own account settings to turn 2FA on). Off by default so enabling this doesn't instantly lock out existing staff. |
| STAFF_OIDC_ISSUER_URL | Runtime | string | Base URL of your OIDC identity provider (e.g. https://your-org.okta.com, https://login.microsoftonline.com/<tenant>/v2.0). Must serve a standard /.well-known/openid-configuration discovery document. Leave empty to disable staff SSO -- privileged accounts sign in with password/OAuth like everyone else. | |
| STAFF_OIDC_CLIENT_ID | Runtime | string | The client/application ID your IdP issued when you registered this app. Required alongside the issuer URL and client secret for staff SSO to activate. | |
| STAFF_OIDC_CLIENT_SECRET | Runtime | string | The client secret your IdP issued alongside the client ID. Register this app's redirect URI with your IdP as: <your app URL>/api/v3/auth/staff-oidc/callback | |
| CONTACT_MESSAGE_MAX_LENGTH | Runtime | int | 5000 | Hard cap on contact-form and landing-page-contact message length. |
| DASHBOARD_WIDGET_LIMIT | Runtime | int | 6 | Row cap for both the Recent Scans and Top Vulnerabilities dashboard widgets. |
| MAX_AVATAR_UPLOAD_BYTES | Build | int | 5242880 | Server-enforced avatar upload cap, after base64 decode; the profile page's client-side pre-check uses this exact value too. Reference only: nothing reads the saved value, so a change here does not apply, not even after a rebuild. Set CONFIG_MAX_AVATAR_UPLOAD_BYTES in lib/config/config-values.ts and rebuild instead. |
| CLEANUP_API_USAGE_RETENTION_DAYS | Runtime | int | 90 | How long API usage log rows are kept before the periodic cleanup pass deletes them. |
| CLEANUP_REVOKED_API_KEYS_RETENTION_DAYS | Runtime | int | 30 | How long a revoked API key row is kept before cleanup purges it. Raise this for incident/security review on revoked keys. |
| CLEANUP_DATA_REQUESTS_RETENTION_DAYS | Runtime | int | 60 | How long GDPR/CCPA-style data-request records are kept before cleanup purges them. |
| CLEANUP_ADMIN_AUDIT_LOG_RETENTION_DAYS | Runtime | int | 365 | How long admin audit trail rows are kept before cleanup purges them. |
| CLEANUP_ADMIN_USER_NOTES_RETENTION_DAYS | Runtime | int | 365 | How long internal admin notes on a user are kept before cleanup purges them. |
| CLEANUP_SECURITY_ALERTS_RETENTION_DAYS | Runtime | int | 180 | How long brute-force/anomaly alert rows are kept before cleanup purges them. |
| CLEANUP_SYSTEM_ERROR_LOGS_RETENTION_DAYS | Runtime | int | 30 | How long captured console.error rows (Admin > System > Error Logs) are kept before cleanup purges them. |
| CLEANUP_EMAIL_LOG_RETENTION_DAYS | Runtime | int | 30 | How long the outbound email log (Admin > System > Email Logs) is kept before cleanup purges it. |
| CLEANUP_SCAN_FINDING_FEEDBACK_RETENTION_DAYS | Runtime | int | 90 | How long engine accuracy-feedback rows are kept before cleanup purges them. Raise this on lower scan volume so enough feedback accumulates before rows are purged. |
| CLEANUP_USER_NOTIFICATIONS_RETENTION_DAYS | Runtime | int | 90 | How long in-app notification-bell history is kept before cleanup purges it. |
| CLEANUP_GITHUB_REVIEW_USAGE_RETENTION_DAYS | Runtime | int | 180 | How long GitHub repo AI review usage-tracking rows are kept before cleanup purges them. |
| CLEANUP_KEV_CACHE_RETENTION_DAYS | Runtime | int | 7 | How long dead CISA KEV cache rows accumulate before this housekeeping delete runs. Distinct from the KEV cache freshness window in the AI/Scanning settings above. |
| UPDATER_NPM_CI_TIMEOUT_MS | Runtime | int | 600000 | How long the self-updater waits for `npm ci` to finish before aborting the update. Raise this on a slow-disk or slow-network self-hosted box. |
| UPDATER_ASSET_DOWNLOAD_TIMEOUT_MS | Runtime | int | 120000 | How long the self-updater waits when downloading the release tarball, checksums, and cosign bundle from GitHub before aborting. |
Layer 2: Runtime Secrets
All secrets live in .env (or in docker-compose.yml as the environment block). Runtime validation is performed by lib/config/env.ts using Zod and called from instrumentation.ts at server startup. A missing or malformed required variable crashes the process before it accepts any requests.
Required
DATABASE_URL: PostgreSQL connection stringAPI_KEY_ENCRYPTION_KEY: exactly 64 hex chars (32 bytes). Used to encrypt stored API keys with AES-256-GCM.NEXT_PUBLIC_APP_URL: public URL of the deployment
Auth
AUTH_SECRET: used to HMAC-sign the Discord OAuth state. Falls back toAPI_KEY_ENCRYPTION_KEYif unset.
Database
DATABASE_SSL:trueto require SSLDATABASE_SSL_CA: CA cert contents (when SSL is on and the CA is not in the system trust store)TRUSTED_PROXY_CIDR: comma-separated CIDRs used when readingX-Forwarded-Forfor client-IP. Example:10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,127.0.0.0/8
Email (SMTP)
Required for password reset, email verification, billing verify, and webhook lifecycle emails. Without SMTP configured, those flows fail silently.
SMTP_HOST,SMTP_PORT(default 587),SMTP_USER,SMTP_PASS,SMTP_FROM
Stripe (billing)
STRIPE_SECRET_KEYSTRIPE_PUBLISHABLE_KEYNEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYSTRIPE_WEBHOOK_SECRET: set after runningGET /api/v3/stripe/setup-webhook
If Stripe keys are unset, billing endpoints return 503.
Discord OAuth
DISCORD_CLIENT_ID,DISCORD_CLIENT_SECRET: required for/api/v3/auth/discordDISCORD_BOT_TOKEN,DISCORD_GUILD_ID: optional. If both are set, the bot auto-adds connecting users to the guild
Google & GitHub sign-in
GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET: enable Google sign-in. The Google button shows only when both are set.GITHUB_CLIENT_ID,GITHUB_CLIENT_SECRET: enable GitHub sign-in and the GitHub repository scanner (connecting a repo to scan its source). Without them, both are off.
All three providers (Google, GitHub, Discord) sign in through /api/v3/auth/oauth/[provider]; each button appears only when its client id and secret are present.
IPv4 session capture (optional)
NEXT_PUBLIC_IPV4_ECHO_URL: an IPv4-only host that echoes back the IP it sees. When set, a dual-stack sign-in over IPv6 also captures a usable IPv4 for the session and device list. Leave it unset to disable. The host must resolve over IPv4 only (a DNS-only A record, no AAAA and not proxied), or it cannot force the browser onto IPv4.
Database pool tuning (optional)
Read straight from the environment (not the admin settings) when the pool is constructed, so a change needs a process restart. Sensible defaults ship; override only if you have measured a need:
DATABASE_POOL_MAX,DATABASE_POOL_MIN: pool size bounds.DATABASE_IDLE_TIMEOUT_MS,DATABASE_CONNECTION_TIMEOUT_MS: idle and connect timeouts.DATABASE_STATEMENT_TIMEOUT_MS,DATABASE_QUERY_TIMEOUT_MS: server-side and client-side query time limits.
Cloudflare Turnstile
TURNSTILE_SECRET_KEYNEXT_PUBLIC_TURNSTILE_SITE_KEY
Turnstile is auto-enabled when the site key is present. It protects the four unauthenticated write endpoints that verify a token: signup, the contact form, the landing-page contact form, and support ticket creation. Password reset is not one of them; that flow is defended by RATE_LIMIT_FORGOT_PASSWORD_* per IP and per email address instead.
Threat reputation & CVE intelligence
The reputation check and the software-inventory CVE correlation are all optional. Each source is skipped when its key is unset, and never reports a clean result it could not actually verify (a missing key or error reads as unavailable, not clean).
WEB_RISK_API_KEY: Google Web Risk (malware, phishing, unwanted-software listings). Enable the Web Risk API in Google Cloud and create a key.URLHAUS_AUTH_KEY: URLhaus (abuse.ch) host lookup. abuse.ch now requires a free Auth-Key: register atauth.abuse.ch.- Quad9: a third reputation source that needs no key. Quad9 (9.9.9.9) is a security DNS resolver; the scan resolves the host through Quad9 and a neutral resolver and flags the host when Quad9 blocks it via its threat feed. Nothing to configure.
NVD_API_KEY: optional. The software inventory correlates detected versions to CVEs via OSV.dev and the NVD REST API. NVD works keyless at a low rate limit; a free key fromnvd.nist.gov/developersraises it.
BrowserBase (live browser sessions)
BROWSERBASE_API_KEYBROWSERBASE_PROJECT_ID
Optional. When both are set, the “View Page” button on scan results opens a remote BrowserBase session in a popup. Each session is hard-clamped to 360 seconds (6 minutes). The popup auto-ends the session when it closes, so no history is retained server-side. See POST /browser/sessions.
Two independent limits apply on top of the per-session cap: a monthly minute allowance per plan (30/60/150/400 minutes for free/core/pro/elite, purchasable top-ups available in Profile > Billing once the free allowance runs out), and an account-wide concurrency cap on how many sessions can be open at once across every user combined, matching this deployment’s actual BrowserBase plan. A request that arrives at the concurrency cap queues automatically (paid plans admitted ahead of free) instead of failing outright.
AI Provider (optional)
AI features (chat, finding verification, audit summaries) work against any OpenAI-compatible endpoint or Anthropic’s native API, resolved in lib/ai/provider.ts. Without any of these set, AI features stay off.
AI_BASE_URL: full base URL of an OpenAI-compatible or Anthropic endpoint, e.g.https://api.anthropic.com/v1or a localhttp://localhost:11434/v1for Ollama. Takes precedence overAI_PROVIDER.AI_PROVIDER: shorthand for a known provider instead of a full URL. The accepted values are the keys ofKNOWN_PROVIDER_BASE_URLSinlib/ai/provider.ts, rendered here so the two cannot drift:openai,anthropic,minimax,groq,mistral,openrouter,ollama,lmstudio,together,deepseek. Ignored ifAI_BASE_URLis set.AI_MODEL: model id to call. If unset,resolveAiDefaultModel()picks a reasonable default per provider (e.g.llama3.2for Ollama).AI_API_KEY: API key for the resolved endpoint. Not needed for a local endpoint that does not require one.
Debug: DISABLE_CSP=1
Set DISABLE_CSP=1 in .env.local to ship the app without any CSP, COOP, CORP, X-Frame-Options, or Permissions-Policy headers. Use this when debugging a third-party embed (BrowserBase, Turnstile, embedded videos, etc.) and you want to confirm whether CSP is the blocker. Never set this in production.
Contact / support overrides
SUPPORT_EMAIL(orNEXT_PUBLIC_SUPPORT_EMAILfor the client-side half): overrides the support address shown in the UI and used in support mail. Falls back toCONFIG_SUPPORT_EMAIL.CONTACT_EMAIL: parsed and validated bylib/config/env.tsbut read by nothing. Setting it changes no behaviour. This entry used to be paired withSUPPORT_EMAILas if both worked, which made the no-op look like a bug. The contact form delivers toSMTP_FROM, thenSMTP_USER, then theNOREPLY_EMAILsetting; set one of those instead. The variable is still accepted so an existing.envor compose file does not fail validation.
Database backups
All optional. Read by the built-in backup/restore scripts (npm run db:backup / npm run db:restore) and the /admin Backup button. These require the postgresql-client package (pg_dump) on PATH. See Self-Hosting to Backups.
BACKUP_DIR: directory backups are written to. Default./backups. On a container this must be a persistent/mounted volume or backups are lost on rebuild.BACKUP_RETENTION_DAYS: prune local backups older than this after a successful run. Default14;0keeps everything.BACKUP_ENCRYPTION_KEY: 64-hex-char AES-256 key. Falls back toAPI_KEY_ENCRYPTION_KEYwhen unset, so backups are encrypted by default; a separate key is recommended for defense in depth. Restore uses the same resolution.BACKUP_OFFSITE_UPLOAD_URL: presigned PUT URL (S3/R2/B2 or any receiver). When set, the finished backup is uploaded there after the local write.
Docker-only
Read by docker-compose.yml; not used by the app itself.
POSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_DBAPP_PORT(default 3000): the host port the app is published on.HOST_BIND(default127.0.0.1): the interface that port binds to. The compose file assumes a reverse proxy on the same host; set0.0.0.0to publish on every interface and firewall it yourself.
DB_PORT is still in .env.example but is read by nothing: docker-compose.yml publishes no host port for Postgres at all, so the database is reachable only from inside the compose network at postgres:5432. Setting it changes nothing.
AI Providers & Models
Real context-window and max-output-token limits per model, for every provider currently in lib/ai/model-catalog.ts. Numbers come straight from each provider’s own published specs; a model is left off entirely rather than guessed at, so an empty cell here means the number was not independently verified, not that the model has no limit.
| Provider | Model | Context window | Max output tokens | Notes |
|---|---|---|---|---|
| OpenAI | GPT-5.4 | 400,000 | 128,000 | Supports extended thinking. |
| OpenAI | GPT-5.4 mini | 400,000 | 128,000 | Supports extended thinking. |
| OpenAI | GPT-5.4 nano | 400,000 | 128,000 | Supports extended thinking. API only. Cheapest of the 5.4 line; prefer a larger model for finding verification. |
| OpenAI | GPT-5.2 | 400,000 | 128,000 | Supports extended thinking. |
| OpenAI | GPT-5 | 400,000 | 128,000 | - |
| OpenAI | GPT-5 mini | 400,000 | 128,000 | - |
| OpenAI | o3-mini (reasoning) | 200,000 | 100,000 | Supports extended thinking. Chat Completions doesn't return this model's reasoning text, only the final answer. |
| OpenAI | GPT-4o | 128,000 | 16,384 | - |
| OpenAI | GPT-4o mini | 128,000 | 16,384 | - |
| OpenAI | GPT-4 Turbo | 128,000 | 4,096 | - |
| Anthropic (Claude) | Claude Fable 5.1 | 1,000,000 | 128,000 | Supports extended thinking. |
| Anthropic (Claude) | Claude Opus 5 | 1,000,000 | 128,000 | Supports extended thinking. Elevated safety classifiers may decline requests that look like exploit or malware content, even in a legitimate security-scanning context. |
| Anthropic (Claude) | Claude Opus 4.8 | 1,000,000 | 128,000 | Supports extended thinking. |
| Anthropic (Claude) | Claude Sonnet 5 | 1,000,000 | 128,000 | Supports extended thinking. |
| Anthropic (Claude) | Claude Haiku 4.5 | 200,000 | 64,000 | Supports extended thinking. |
| Google Gemini | Gemini 3 Pro | 1,000,000 | 64,000 | Supports extended thinking. |
| Google Gemini | Gemini 3 Flash | 1,000,000 | 64,000 | Supports extended thinking. |
| Google Gemini | Gemini 2.5 Pro | 1,048,576 | 65,536 | Supports extended thinking. |
| Google Gemini | Gemini 2.5 Flash | 1,048,576 | 65,536 | Supports extended thinking. |
| Groq | Llama 3.3 70B | 131,072 | 32,768 | - |
| Groq | Llama 3.1 8B (fast) | 131,072 | 131,072 | - |
| Mistral | Mistral Large | 128,000 | not verified | - |
| Mistral | Mistral Small | 128,000 | not verified | - |
| Mistral | Codestral | 256,000 | not verified | Tuned for code. Same request shape as the other Mistral models. |
| OpenRouter | GPT-4o mini (via OpenRouter) | 128,000 | 16,384 | - |
| OpenRouter | Llama 3.3 70B (via OpenRouter) | 131,072 | not verified | - |
| Together AI | Llama 3.3 70B Turbo | 131,072 | not verified | - |
| MiniMax | MiniMax M3 | 1,000,000 | 131,072 | Reasoning only runs on MiniMax's Anthropic-compatible endpoint (the MiniMax (Anthropic API) provider below), which is what its own docs recommend. On this OpenAI-compatible URL the model answers without thinking. |
| MiniMax | MiniMax M2.7 Speed | 204,800 | 131,072 | VulnRadar's own managed AI runs this model. |
| MiniMax | MiniMax M2.7 | 204,800 | 131,072 | - |
| DeepSeek | DeepSeek Chat | 128,000 | 8,000 | - |
| DeepSeek | DeepSeek Reasoner | 64,000 | 8,000 | Supports extended thinking. Chain-of-thought reasoning tokens (up to 32K) are separate from this output cap and from the context window. |
| MiniMax (Anthropic API) | MiniMax M3 (thinking) | 1,000,000 | 131,072 | Supports extended thinking. Thinking is off by default on M3 and is requested as {type: adaptive}, which this endpoint supports and the OpenAI-compatible one does not. |
| xAI (Grok) | Grok 4.6 | 500,000 | 128,000 | Supports extended thinking. |
| xAI (Grok) | Grok 4.5 | 500,000 | 128,000 | Supports extended thinking. |
| xAI (Grok) | Grok 4.1 Fast | 2,000,000 | 128,000 | Supports extended thinking. Largest context of the Grok line, and the cheapest. Good for whole-scan summaries. |
Self-Hosting Checklist
- Edit
lib/config/config-values.ts: app name, URL, emails, branding. - Generate an encryption key:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" - Create
.envfromcp .env.example .envand fill in DATABASE_URL, API_KEY_ENCRYPTION_KEY, NEXT_PUBLIC_APP_URL. - Provision Postgres (via
docker compose up -d postgresor external) and ensure DATABASE_URL points to it. - Start the app (
npm run devordocker compose up app). Schema auto-creates on first boot; meta row is written on first scan viadb:migrate. - Sign up the first user via
/signup, then promote via SQL:docker compose exec postgres psql -U vulnradar -d vulnradar -c "UPDATE users SET role = 'admin' WHERE email = '[email protected]'" - (Optional) Configure SMTP, Stripe, Discord, Turnstile in
.envand restart.
Validation
The config system has four validation gates, each catching a different class of mistake:
- Build time:
npm run typecheck.lib/config/registry.tsandlib/config/constants.tsimport eachCONFIG_*constant by name, so renaming or removing one fails typecheck at its import site. - Write time:
validateSettingValuebuilds a Zod schema from each registry entry’s type and bounds and runs every admin-submitted value through it before the row is written. An out-of-range rate limit, a malformed URL, or the string"false"for a boolean is rejected rather than stored. - Server startup:
lib/config/env.tsvalidates every required environment variable with Zod. A missing or malformed value throws before any request is served. - First scan:
instrumentation.tsreadsvulnradar_schema_metaand refuses to start ifschema_versionis belowCONFIG_MIN_SCHEMA_VERSION.