Skip to main content

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 changeWhere
App name, URL, emails, branding, SEOlib/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, retentionAdmin -> 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

text
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 allowlist

Single 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 slug
  • CONFIG_APP_VERSION: Public version string
  • CONFIG_MIN_SCHEMA_VERSION: minimum schema version this app accepts (default: 3.0.0). The app refuses to start if vulnradar_schema_meta.schema_version is lower.
  • CONFIG_ENGINE_VERSION: Detection engine version
  • CONFIG_TOTAL_CHECKS_LABEL: Marketing badge (current: 905+)
  • CONFIG_APP_URL: Public URL
  • CONFIG_APP_REPO: GitHub owner/repo
  • CONFIG_APP_DESCRIPTION
  • CONFIG_DISCORD_INVITE_URL: Optional

Emails

  • CONFIG_SUPPORT_EMAIL
  • CONFIG_LEGAL_EMAIL
  • CONFIG_SECURITY_EMAIL: used in security.txt
  • CONFIG_ENTERPRISE_EMAIL
  • CONFIG_NOREPLY_EMAIL: sender for transactional email
  • CONFIG_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 /public
  • CONFIG_PRIMARY_COLOR: Hex color (informational; the actual brand color is set via the --primary CSS variable in app/globals.css)
  • CONFIG_FOOTER_TEXT

Cookies

  • CONFIG_SESSION_COOKIE_NAME, CONFIG_SESSION_MAX_AGE_DAYS
  • CONFIG_VERSION_COOKIE_NAME, CONFIG_VERSION_COOKIE_MAX_AGE_DAYS
  • CONFIG_DEVICE_TRUST_COOKIE_NAME, CONFIG_DEVICE_TRUST_MAX_AGE_DAYS
  • CONFIG_2FA_PENDING_COOKIE_NAME, CONFIG_2FA_PENDING_MAX_AGE_SECONDS

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.

ConstantAttemptsWindow (min)
CONFIG_RATE_LIMIT_LOGIN_ATTEMPTS515
CONFIG_RATE_LIMIT_SIGNUP_ATTEMPTS360
CONFIG_RATE_LIMIT_FORGOT_PASSWORD_ATTEMPTS310
CONFIG_RATE_LIMIT_API_REQUESTS10060
CONFIG_RATE_LIMIT_SCAN_REQUESTS10060
CONFIG_RATE_LIMIT_BULK_SCAN_REQUESTS1060

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 it
  • CONFIG_API_CURRENT_VERSION (default: v3)
  • CONFIG_API_SUPPORTED_VERSIONS (default: ["v3"]). This is the only version served: there is no /api/v1 or /api/v2 route 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)

Feature flags

ConstantDefaultToggles
CONFIG_FEATURE_DEMO_MODEtrue/demo page and /api/v3/demo-scan
CONFIG_FEATURE_TEAMStrueTeam creation + membership
CONFIG_FEATURE_API_KEYStrueBearer-key generation
CONFIG_FEATURE_WEBHOOKStrueScan-complete webhooks
CONFIG_FEATURE_SCHEDULED_SCANStrueScheduled /api/v3/schedules
CONFIG_FEATURE_BULK_SCANStruePOST /api/v3/scan/bulk
CONFIG_FEATURE_PDF_REPORTStruePDF export of findings
CONFIG_FEATURE_EMAIL_NOTIFICATIONStrueEmail 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 to false to give every user unlimited scans (or CONFIG_BILLING_UNLIMITED_MODE_LIMIT if 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 when CONFIG_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.ts on 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 13 SEO_* 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 the CONFIG_* constant or its NEXT_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:

text
resolve(key) = database value  ??  environment override  ??  shipped default

The 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

Operations settings
SettingTierTypeDefaultDescription
MAINTENANCE_MODERuntimeboolfalseServes 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_MESSAGERuntimestringShown 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_SIGNUPSRuntimeboolfalseRefuses 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_MESSAGERuntimestringReason shown to someone who tries to register while signups are paused. Leave empty for the built-in wording.
PAUSE_LOGINSRuntimeboolfalseStops 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_MESSAGERuntimestringReason shown to someone who tries to sign in while logins are paused. Leave empty for the built-in wording.
PAUSE_SCANNINGRuntimeboolfalseRefuses 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_MESSAGERuntimestringReason returned to anyone who submits a scan while scanning is paused. Leave empty for the built-in wording.

General

General settings
SettingTierTypeDefaultDescription
APP_NAMEBuildstringVulnRadarShown 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_SLUGBuildstringvulnradarLowercase 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_DESCRIPTIONBuildstringOpen-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_LABELBuildstring905+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_URLBuildurlhttps://vulnradar.devOrigin 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_REPOBuildstringVulnRadar/vulnradar.devGitHub "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_URLBuildurlhttps://discord.gg/Y7R6hdGbNeCommunity 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_URLBuildurlhttps://chromewebstore.google.com/detail/nbmifpplhhejdfokaglpomdnbaifngfjShown 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_URLBuildurlhttps://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_ATRuntimestring2026-08-14Date 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_SUMMARYRuntimestringWe 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_EMAILRuntimeemail[email protected]Address shown to users who need help and used as the reply-to on support mail.
LEGAL_EMAILRuntimeemail[email protected]Contact address on the terms and privacy pages.
SECURITY_EMAILRuntimeemail[email protected]Address published in security.txt for vulnerability reports.
NOREPLY_EMAILRuntimeemail[email protected]From address on automated mail. Must be a domain your SMTP relay is allowed to send as.
DATA_EXPORT_COOLDOWN_DAYSRuntimeint30How often a user may request a fresh GDPR data export. Re-downloading an already-generated export is not affected.

Social

Social settings
SettingTierTypeDefaultDescription
SOCIAL_YOUTUBE_URLBuildstringhttps://www.youtube.com/@VulnRadarPublic 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_URLBuildstringhttps://www.tiktok.com/@vulnradarPublic 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_URLBuildstringhttps://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_URLBuildstringhttps://x.com/vulnradardevPublic 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_URLBuildstringPublic 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_URLBuildstringPublic 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_URLBuildstringPublic 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_URLBuildstringPublic 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_URLBuildstringFeed 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

Branding settings
SettingTierTypeDefaultDescription
LOGO_URLBuildstring/favicon.svgAbsolute 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_COLORBuildstring#60a5faHex 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_DARKBuildstring#0d1117Hex 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_LIGHTBuildstring#f5f7faHex 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_TEXTBuildstringVulnRadar - Security ScannerShort 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

SEO settings
SettingTierTypeDefaultDescription
SEO_TAGLINEBuildstringWeb Vulnerability ScannerShort 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_KEYWORDSBuildstringvulnerability 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 scannerComma-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_IMAGEBuildstring/og-image.png?v=5eccd8f1Path 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_WIDTHBuildint1200Pixel 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_HEIGHTBuildint630Pixel 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_HANDLEBuildstringLeave 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_URLBuildurlhttps://github.com/VulnRadar/vulnradar.devRepository 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_VERIFICATIONBuildstringSearch 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_VERIFICATIONBuildstringBing 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_LOCALEBuildstringen_USLocale 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_LANGUAGEBuildstringenValue 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_YEARBuildstring2025Year 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_LICENSEBuildstringGPL-3.0SPDX 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

Features settings
SettingTierTypeDefaultDescription
FEATURE_DEMO_MODERuntimebooltrueLets signed-out visitors run a limited number of scans.
FEATURE_TEAMSRuntimebooltrueTurning this off hides team pages from users who already belong to a team.
FEATURE_API_KEYSRuntimebooltrueTurning this off stops users issuing new keys. Existing integrations break.
FEATURE_WEBHOOKSRuntimebooltrueOutbound scan-complete notifications to user-supplied endpoints.
FEATURE_SCHEDULED_SCANSRuntimebooltrueRecurring scans on a cron schedule.
FEATURE_BULK_SCANSRuntimebooltrueScanning many URLs in one submission.
FEATURE_PDF_REPORTSRuntimebooltrueDownloadable PDF export of a scan result.
FEATURE_EMAIL_NOTIFICATIONSRuntimebooltrueTransactional mail other than authentication. Security mail is always sent.
FEATURE_DOMAIN_VERIFICATIONRuntimebooltrueDNS 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_ENABLEDRuntimebooltrueRe-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_DAYSRuntimeint30A verified domain is re-checked once it's been this many days since its last check.
DOMAIN_REVERIFY_BATCH_SIZERuntimeint50Caps 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_ENABLEDRuntimebooltrueWeekly 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_ENABLEDRuntimeboolfalseTake 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

Billing settings
SettingTierTypeDefaultDescription
BILLING_ENABLEDRuntimebooltrueTurning 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_LIMITRuntimeint25Scans per day on the free plan. Use -1 for unlimited.
BILLING_CORE_SUPPORTER_LIMITRuntimeint100Scans per day on the core supporter plan. Use -1 for unlimited.
BILLING_PRO_SUPPORTER_LIMITRuntimeint150Scans per day on the pro supporter plan. Use -1 for unlimited.
BILLING_ELITE_SUPPORTER_LIMITRuntimeint500Scans per day on the elite supporter plan. Use -1 for unlimited.
BILLING_FREE_RETENTIONRuntimeint-1Days 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_RETENTIONRuntimeint-1Days of scan history kept on the core supporter plan. Use -1 to keep it forever.
BILLING_PRO_SUPPORTER_RETENTIONRuntimeint-1Days of scan history kept on the pro supporter plan. Use -1 to keep it forever.
BILLING_ELITE_SUPPORTER_RETENTIONRuntimeint-1Days of scan history kept on the elite supporter plan. Use -1 to keep it forever.
BILLING_UNLIMITED_MODE_LIMITRuntimeint-1Daily cap applied to everyone when billing is disabled. Use -1 for no cap.
BILLING_VERIFY_CODE_EXPIRY_MINUTESRuntimeint5How 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_HOURSRuntimeint24How 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_LIMITRuntimeint100How 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_KEYSRuntimeint1Active 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_KEYSRuntimeint3Active 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_KEYSRuntimeint10Active 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_KEYSRuntimeint-1Active 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_DAYRuntimeint25Daily request quota assigned to a new API key on the free plan. Use -1 for unlimited.
BILLING_CORE_SUPPORTER_API_REQUESTS_PER_DAYRuntimeint100Daily request quota assigned to a new API key on the core supporter plan. Use -1 for unlimited.
BILLING_PRO_SUPPORTER_API_REQUESTS_PER_DAYRuntimeint5000Daily request quota assigned to a new API key on the pro supporter plan. Use -1 for unlimited.
BILLING_ELITE_SUPPORTER_API_REQUESTS_PER_DAYRuntimeint-1Daily request quota assigned to a new API key on the elite supporter plan. Use -1 for unlimited.
BILLING_FREE_TEAMSRuntimeint0Teams a free-plan user may own at once. Use -1 for unlimited, 0 to disable teams on this plan.
BILLING_CORE_SUPPORTER_TEAMSRuntimeint0Teams a core supporter may own at once. Use -1 for unlimited, 0 to disable teams on this plan.
BILLING_PRO_SUPPORTER_TEAMSRuntimeint1Teams a pro supporter may own at once. Use -1 for unlimited, 0 to disable teams on this plan.
BILLING_ELITE_SUPPORTER_TEAMSRuntimeint3Teams an elite supporter may own at once. Use -1 for unlimited, 0 to disable teams on this plan.
BILLING_FREE_TEAM_MEMBERSRuntimeint0Members 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_MEMBERSRuntimeint0Members 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_MEMBERSRuntimeint3Members 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_MEMBERSRuntimeint10Members 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_WEBHOOKSRuntimeint1Webhook endpoints a free-plan user may register. Use -1 for unlimited, 0 to disable webhooks on this plan.
BILLING_CORE_SUPPORTER_WEBHOOKSRuntimeint1Webhook endpoints a core supporter may register. Use -1 for unlimited, 0 to disable webhooks on this plan.
BILLING_PRO_SUPPORTER_WEBHOOKSRuntimeint5Webhook endpoints a pro supporter may register. Use -1 for unlimited, 0 to disable webhooks on this plan.
BILLING_ELITE_SUPPORTER_WEBHOOKSRuntimeint-1Webhook endpoints an elite supporter may register. Use -1 for unlimited, 0 to disable webhooks on this plan.
BILLING_FREE_SCHEDULED_SCANSRuntimeint3Recurring 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_SCANSRuntimeint5Recurring scan schedules a core supporter may keep active. Use -1 for unlimited, 0 to disable scheduled scans on this plan.
BILLING_PRO_SUPPORTER_SCHEDULED_SCANSRuntimeint10Recurring scan schedules a pro supporter may keep active. Use -1 for unlimited, 0 to disable scheduled scans on this plan.
BILLING_ELITE_SUPPORTER_SCHEDULED_SCANSRuntimeint-1Recurring scan schedules an elite supporter may keep active. Use -1 for unlimited, 0 to disable scheduled scans on this plan.
BILLING_FREE_BULK_SCAN_URLSRuntimeint5URLs 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_URLSRuntimeint10URLs 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_URLSRuntimeint25URLs 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_URLSRuntimeint100URLs 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_PAGESRuntimeint25Pages 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_PAGESRuntimeint50Pages a core supporter may select to scan in one crawl.
BILLING_PRO_SUPPORTER_CRAWL_PAGESRuntimeint100Pages a pro supporter may select to scan in one crawl.
BILLING_ELITE_SUPPORTER_CRAWL_PAGESRuntimeint250Pages 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_WINDOWRuntimeint0AI 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_WINDOWRuntimeint200000AI 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_WINDOWRuntimeint1000000AI 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_WINDOWRuntimeint5000000AI 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_WINDOWRuntimeint80000AI 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_WINDOWRuntimeint400000AI 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_WINDOWRuntimeint2000000AI 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_WINDOWRuntimeint8000000AI 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_MONTHRuntimeint30Live-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_MONTHRuntimeint60Live-browser session minutes a core supporter may use per calendar month.
BILLING_PRO_SUPPORTER_BROWSERBASE_MINUTES_PER_MONTHRuntimeint150Live-browser session minutes a pro supporter may use per calendar month.
BILLING_ELITE_SUPPORTER_BROWSERBASE_MINUTES_PER_MONTHRuntimeint400Live-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_SCANSRuntimeint1Max 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_SCANSRuntimeint2Max scans a core supporter may have running at once.
BILLING_PRO_SUPPORTER_CONCURRENT_SCANSRuntimeint3Max scans a pro supporter may have running at once.
BILLING_ELITE_SUPPORTER_CONCURRENT_SCANSRuntimeint5Max 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

Rate Limits settings
SettingTierTypeDefaultDescription
RATE_LIMIT_LOGIN_ATTEMPTSRuntimeint5Failed logins allowed from one IP before it is locked out for the rest of the window.
RATE_LIMIT_LOGIN_WINDOW_MINUTESRuntimeint15Length of the login rate-limit bucket.
RATE_LIMIT_SIGNUP_ATTEMPTSRuntimeint3Accounts one IP may create per window.
RATE_LIMIT_SIGNUP_WINDOW_MINUTESRuntimeint60Length of the signup rate-limit bucket.
RATE_LIMIT_FORGOT_PASSWORD_ATTEMPTSRuntimeint3Reset emails one IP may trigger per window. Also gates verification resends.
RATE_LIMIT_FORGOT_PASSWORD_WINDOW_MINUTESRuntimeint10Length of the password reset rate-limit bucket.
RATE_LIMIT_SIGNUP_EMAIL_ATTEMPTSRuntimeint5Signups 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_MINUTESRuntimeint60Length of the per-email signup rate-limit bucket.
RATE_LIMIT_FORGOT_PASSWORD_EMAIL_ATTEMPTSRuntimeint3Reset 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_MINUTESRuntimeint60Length of the per-email password reset rate-limit bucket.
RATE_LIMIT_DOMAIN_ADD_ATTEMPTSRuntimeint20Domains 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_MINUTESRuntimeint60Length of the domain-add rate-limit bucket.
RATE_LIMIT_DOMAIN_VERIFY_ATTEMPTSRuntimeint30DNS 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_MINUTESRuntimeint60Length of the domain-verification rate-limit bucket.
RATE_LIMIT_API_REQUESTSRuntimeint100General API calls allowed per window per caller.
RATE_LIMIT_API_WINDOW_MINUTESRuntimeint60Length of the general API rate-limit bucket.
RATE_LIMIT_SCAN_REQUESTSRuntimeint100Single-URL scans allowed per window per user. Separate from the daily plan quota.
RATE_LIMIT_SCAN_WINDOW_MINUTESRuntimeint60Length of the scan rate-limit bucket.
RATE_LIMIT_BULK_SCAN_REQUESTSRuntimeint10Bulk submissions allowed per window per user. Each submission may carry many URLs.
RATE_LIMIT_BULK_SCAN_WINDOW_MINUTESRuntimeint60Length of the bulk scan rate-limit bucket.
DEFAULT_API_KEY_DAILY_LIMITRuntimeint50Requests per day granted to a newly issued API key. Existing keys keep the limit they were created with.
RATE_LIMIT_BROWSER_SESSION_ATTEMPTSRuntimeint20Live 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_MINUTESRuntimeint60Length of the browser session rate-limit bucket.
RATE_LIMIT_AI_CHAT_ATTEMPTSRuntimeint60Support chat messages one user may send per window. Bounds AI provider cost from a single account.
RATE_LIMIT_AI_CHAT_WINDOW_MINUTESRuntimeint60Length of the AI chat rate-limit bucket.
RATE_LIMIT_AI_VERIFY_ATTEMPTSRuntimeint20AI 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_MINUTESRuntimeint60Length of the AI verify rate-limit bucket.
RATE_LIMIT_AI_SUMMARY_ATTEMPTSRuntimeint20AI 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_MINUTESRuntimeint60Length of the AI summary rate-limit bucket.
RATE_LIMIT_ADMIN_REAUTH_ATTEMPTSRuntimeint10Password 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_MINUTESRuntimeint15Length of the admin re-auth rate-limit bucket.
RATE_LIMIT_BILLING_VERIFY_ATTEMPTSRuntimeint5Attempts 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_MINUTESRuntimeint5Length of the billing verification rate-limit bucket. Should stay at or below the code's own validity window.
RATE_LIMIT_TEAM_INVITE_ATTEMPTSRuntimeint20Invite emails one team owner may send per window. Bounds email spam from a compromised or malicious account.
RATE_LIMIT_TEAM_INVITE_WINDOW_MINUTESRuntimeint60Length of the team invite rate-limit bucket.
RATE_LIMIT_SCAN_TAGS_ATTEMPTSRuntimeint60Tag add/remove calls one user may make per window (POST /api/v3/scan/tags).
RATE_LIMIT_SCAN_TAGS_WINDOW_MINUTESRuntimeint60Length of the scan-tag rate-limit bucket.
RATE_LIMIT_PUBLIC_SCANS_ATTEMPTSRuntimeint60Per-IP cap on GET /api/v3/public-scans, the unauthenticated public directory.
RATE_LIMIT_PUBLIC_SCANS_WINDOW_MINUTESRuntimeint1Length of the Public Scans directory rate-limit bucket.
RATE_LIMIT_2FA_VERIFY_ATTEMPTSRuntimeint56-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_MINUTESRuntimeint5Length of the 2FA verify rate-limit bucket.

Scanning

Scanning settings
SettingTierTypeDefaultDescription
MAX_URL_LENGTHRuntimeint2048Characters allowed in a submitted URL before it is rejected.
MAX_URLS_BULKRuntimeint100URLs accepted in one bulk submission.
SCHEDULE_WORKER_BATCH_CONCURRENCYRuntimeint5How many due scheduled scans run at once per polling tick. Keeps a large backlog from launching hundreds of simultaneous scans.
SCAN_TIMEOUT_SECONDSRuntimeint300Hard ceiling for a single-URL scan.
BULK_SCAN_TIMEOUT_SECONDSRuntimeint1800Hard ceiling for a whole bulk submission.
CRAWL_SCAN_TIMEOUT_SECONDSRuntimeint900Hard ceiling for a whole crawl submission (discovery plus every page).
SCAN_STATUS_POLL_INTERVAL_MSRuntimeint2000Suggested interval for a client polling GET /api/v3/scan/status/:id. Not enforced server-side.
SCAN_FETCH_TIMEOUT_MSRuntimeint15000Abort 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_MSRuntimeint15000Ceiling 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_BYTESRuntimeint1048576Bytes 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_HOURSRuntimeint4How 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_CONCURRENCYRuntimeint25Simultaneous 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_CONCURRENCYRuntimeint24Simultaneous 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_MSRuntimeint1500How 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_MSRuntimeint400After 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_MSRuntimeint12000Wall-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_BYTESRuntimeint256Bytes of service banner kept per open port. Bounds what a chatty or hostile service can push into a stored scan result.
CRAWL_DISCOVER_MAX_PAGESRuntimeint500How 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_MSRuntimeint8000Per-page fetch abort timeout used while crawling for page discovery.
CRAWL_DISCOVER_BODY_MAX_BYTESRuntimeint524288How 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_PAGESRuntimeint500Hard ceiling on how many pages a single crawl scan (POST /api/v3/scan/crawl) will ever cover.
CRAWL_PAGE_FETCH_TIMEOUT_MSRuntimeint8000Per-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_BYTESRuntimeint1048576Bytes read from a page's response body before content checks run, shared by the single-URL and crawl scan pipelines.
SCANNER_ASYNC_BRANCH_TIMEOUT_MSRuntimeint12000Ceiling 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_HOURSRuntimeint12How long the CISA Known Exploited Vulnerabilities catalog is cached before a fresh fetch runs.
SCANNER_BUCKET_PROBE_MAX_CANDIDATESRuntimeint5Distinct 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_MSRuntimeint5000Timeout for outbound calls to the CISA KEV feed, the FIRST.org EPSS API, and the Google Web Risk reputation lookup.
SCHEDULE_WORKER_CLAIM_LIMITRuntimeint200Due 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_ROWSRuntimeint100Row cap on the main scan-history list endpoint (GET /api/v3/history).
BULK_SCAN_CLIENT_URL_LIMITBuildint10Client-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_ENABLEDRuntimebooltrueLets 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_LENGTHRuntimeint4096Characters allowed in one secret value (password, header value, cookie value) in a scan request.
SCAN_AUTH_MAX_COOKIESRuntimeint20How many cookies a caller may attach to one authenticated scan request.
SCAN_AUTH_VERIFY_TIMEOUT_MSRuntimeint10000How long to wait for the verification fetch that proves the login worked.
SCAN_AUTH_MAX_LOGIN_BODY_BYTESRuntimeint524288Bytes read from a login or verification page. Only needs to be large enough to reach the CSRF token.
SCAN_AUTH_MAX_COOKIE_AGE_SECONDSRuntimeint3600Longest lifetime the cookie jar honours, however long the target says its cookie lives.
SCAN_AUTH_BASELINE_DIFF_BYTESRuntimeint256Byte difference between the anonymous and authenticated fetch before the login counts as verified.
SCAN_AUTH_BROWSER_NAV_TIMEOUT_MSRuntimeint20000How long to wait for the login page's load event in the browser-driven form login path.
SCAN_AUTH_BROWSER_SETTLE_MSRuntimeint1500How long the page must go without a new network request after load before it counts as fully rendered.
SCAN_AUTH_BROWSER_MAX_WAIT_MSRuntimeint25000Hard ceiling on the whole wait-for-load step, load event plus settle window included.
SCAN_AUTH_BROWSER_SESSION_TIMEOUT_SECONDSRuntimeint90BrowserBase 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_CHARSRuntimeint500000Characters of rendered HTML read from the browser for form detection and post-submit verification.
NEW_ACCOUNT_SCANS_PRIVATERuntimeboolfalseWhen 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

Authentication settings
SettingTierTypeDefaultDescription
SESSION_TIMEOUT_DAYSRuntimeint7How long a session stays valid server-side before the user must sign in again.
SESSION_MAX_AGE_DAYSRuntimeint7Browser-side lifetime of the session cookie. Keep it equal to or below the session lifetime.
PASSWORD_MIN_LENGTHRuntimeint12Shortest password accepted at signup and password reset. Does not affect existing passwords.
PASSWORD_RESET_HOURSRuntimeint1How long a reset link stays usable. Shorter is safer.
EMAIL_VERIFICATION_HOURSRuntimeint24How long a verification link stays usable.
DEVICE_TRUST_DAYSRuntimeint30How long a device may skip the second factor after the user ticks Remember this device.
DEVICE_TRUST_MAX_AGE_DAYSRuntimeint30Browser-side lifetime of the trusted-device cookie. Keep it equal to the device trust duration.
2FA_PENDING_MAX_AGE_SECONDSRuntimeint300How long a half-finished login may sit at the second-factor prompt before it expires.
EMAIL_2FA_CODE_EXPIRY_MINUTESRuntimeint10How long an emailed 6-digit two-factor code stays valid, across the password login, OAuth login, and manual resend flows.
EMAIL_2FA_RESEND_COOLDOWN_SECONDSRuntimeint60Minimum 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_ENABLEDRuntimeboolfalseEnds 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_PREFIXRuntimeint24How 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_PREFIXRuntimeint48IPv6 equivalent of the IPv4 subnet size setting. /48 is the typical residential/ISP allocation boundary.
API_KEY_IP_BINDING_ENABLEDRuntimeboolfalseDeclines 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_PREFIXRuntimeint32How 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_PREFIXRuntimeint128IPv6 equivalent of the IPv4 subnet size setting. Defaults to /128 (exact match).

AI

AI settings
SettingTierTypeDefaultDescription
AI_CHAT_MAX_TOKENSRuntimeint8192Maximum tokens the support chat may generate per reply.
AI_CHAT_HISTORY_DAYSRuntimeint90How long chat conversations are kept before cleanup deletes them.
AI_CHAT_MAX_INPUT_LENGTHRuntimeint2000Longest message a user may send to the support chat.
AI_VERIFY_MAX_TOKENSRuntimeint6000Tokens 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_SIZERuntimeint10How 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_MULTIPLIERRuntimeint3Reasoning 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_MSRuntimeint60000How long to wait for the AI provider on a single finding.
AI_VERIFY_PROBE_TIMEOUT_MSRuntimeint8000How long to wait for the initial HTTP probe of the target site.
AI_VERIFY_TOTAL_TIMEOUT_MSRuntimeint900000Ceiling 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_FINDINGSRuntimeint50Maximum 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_CHARSRuntimeint24576How 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_TOKENSRuntimeint6000Tokens 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_MSRuntimeint40000How 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_LIMITRuntimeint6Highest-severity findings included in the scan-summary prompt, so a scan with hundreds of findings still produces a small prompt.
AI_SUMMARY_MAX_OUTPUT_CHARSRuntimeint4000Character-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_MSRuntimeint12000HTTP 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_TOKENSRuntimeint120Output 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_LIMITRuntimeint15Findings included in the auto-tag prompt for a scan that matched none of the built-in tagging rules.
AI_AUTOTAG_MAX_SUGGESTIONSRuntimeint2Caps 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_HOURSRuntimeint5Length 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_RUNRuntimeint300000Hard 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_MSRuntimeint60000Per-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_CALLRuntimeint4000Output 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_BUDGETRuntimeint40000How 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_FILESRuntimeint300Maximum 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_BYTESRuntimeint5000000Total 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_BYTESRuntimeint300000A single file larger than this is skipped entirely (treated the same as a binary file) rather than fetched and scanned.

Demo

Demo settings
SettingTierTypeDefaultDescription
DEMO_SCAN_LIMITRuntimeint5Scans a signed-out visitor may run before being asked to sign up.
DEMO_WINDOW_HOURSRuntimeint12Length of the demo scan bucket.

Advanced

Advanced settings
SettingTierTypeDefaultDescription
VERSION_COOKIE_MAX_AGE_DAYSRuntimeint365How long a dismissed release notice stays dismissed.
NOTIFICATION_POLL_INTERVAL_MSRuntimeint300000How often the header bell polls for new site-wide and per-user notifications (e.g. team invites).
NOTIFICATION_DEFAULT_DISMISS_DAYSRuntimeint365How long a dismissed bell notification stays dismissed when it does not set its own duration.
BROWSERBASE_MAX_TTL_SECONDSRuntimeint360Ceiling on a live browser session. BrowserBase is metered, so raising this raises real cost.
BROWSERBASE_DEFAULT_TTL_SECONDSRuntimeint360Lifetime requested when a session is created. Keep it at or below the hard cap.
BROWSERBASE_LOGS_POLL_INTERVAL_MSRuntimeint3000How often the live browser session viewer page polls for new network/console log lines.
BROWSERBASE_MAX_CONCURRENT_SESSIONSRuntimeint25How 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_MSRuntimeint30000How long a session-creation request waits for a free concurrency slot before giving up with a 503.
MAX_NAME_LENGTHRuntimeint255Characters accepted in a display name. The database column is 255.
MAX_DESCRIPTION_LENGTHRuntimeint1000Characters accepted in free-text description fields.
MAX_TEAM_NAME_LENGTHRuntimeint255Characters accepted in a team name. The database column is 255.
MAX_TAGS_PER_SCANRuntimeint10Tags a user may attach to one scan.
MAX_TAG_LENGTHRuntimeint30Characters accepted in one scan tag. Longer input is truncated, not rejected.
TEAM_INVITE_EXPIRY_DAYSRuntimeint7How long a team invite link stays usable before it must be resent.
ENGINE_FEEDBACK_NOISE_THRESHOLD_PERCENTRuntimeint20The 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_SIZERuntimeint5Feedback 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_ENABLEDRuntimebooltrueAutomatically 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_SIZERuntimeint20Rows returned when a request does not ask for a page size.
BADGE_CACHE_MAX_AGE_SECONDSRuntimeint3600How 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_URLRuntimestringReceives 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_SECRETRuntimestringOptional. 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_2FARuntimeboolfalseWhen 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_URLRuntimestringBase 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_IDRuntimestringThe 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_SECRETRuntimestringThe 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_LENGTHRuntimeint5000Hard cap on contact-form and landing-page-contact message length.
DASHBOARD_WIDGET_LIMITRuntimeint6Row cap for both the Recent Scans and Top Vulnerabilities dashboard widgets.
MAX_AVATAR_UPLOAD_BYTESBuildint5242880Server-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_DAYSRuntimeint90How long API usage log rows are kept before the periodic cleanup pass deletes them.
CLEANUP_REVOKED_API_KEYS_RETENTION_DAYSRuntimeint30How 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_DAYSRuntimeint60How long GDPR/CCPA-style data-request records are kept before cleanup purges them.
CLEANUP_ADMIN_AUDIT_LOG_RETENTION_DAYSRuntimeint365How long admin audit trail rows are kept before cleanup purges them.
CLEANUP_ADMIN_USER_NOTES_RETENTION_DAYSRuntimeint365How long internal admin notes on a user are kept before cleanup purges them.
CLEANUP_SECURITY_ALERTS_RETENTION_DAYSRuntimeint180How long brute-force/anomaly alert rows are kept before cleanup purges them.
CLEANUP_SYSTEM_ERROR_LOGS_RETENTION_DAYSRuntimeint30How long captured console.error rows (Admin > System > Error Logs) are kept before cleanup purges them.
CLEANUP_EMAIL_LOG_RETENTION_DAYSRuntimeint30How long the outbound email log (Admin > System > Email Logs) is kept before cleanup purges it.
CLEANUP_SCAN_FINDING_FEEDBACK_RETENTION_DAYSRuntimeint90How 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_DAYSRuntimeint90How long in-app notification-bell history is kept before cleanup purges it.
CLEANUP_GITHUB_REVIEW_USAGE_RETENTION_DAYSRuntimeint180How long GitHub repo AI review usage-tracking rows are kept before cleanup purges them.
CLEANUP_KEV_CACHE_RETENTION_DAYSRuntimeint7How 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_MSRuntimeint600000How 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_MSRuntimeint120000How 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 string
  • API_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 to API_KEY_ENCRYPTION_KEY if unset.

Database

  • DATABASE_SSL: true to require SSL
  • DATABASE_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 reading X-Forwarded-For for 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_KEY
  • STRIPE_PUBLISHABLE_KEY
  • NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
  • STRIPE_WEBHOOK_SECRET: set after running GET /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/discord
  • DISCORD_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_KEY
  • NEXT_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 at auth.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 from nvd.nist.gov/developers raises it.

BrowserBase (live browser sessions)

  • BROWSERBASE_API_KEY
  • BROWSERBASE_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/v1 or a local http://localhost:11434/v1 for Ollama. Takes precedence over AI_PROVIDER.
  • AI_PROVIDER: shorthand for a known provider instead of a full URL. The accepted values are the keys of KNOWN_PROVIDER_BASE_URLS in lib/ai/provider.ts, rendered here so the two cannot drift: openai, anthropic, minimax, groq, mistral, openrouter, ollama, lmstudio, together, deepseek. Ignored if AI_BASE_URL is set.
  • AI_MODEL: model id to call. If unset, resolveAiDefaultModel() picks a reasonable default per provider (e.g. llama3.2 for 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 (or NEXT_PUBLIC_SUPPORT_EMAIL for the client-side half): overrides the support address shown in the UI and used in support mail. Falls back to CONFIG_SUPPORT_EMAIL.
  • CONTACT_EMAIL: parsed and validated by lib/config/env.ts but read by nothing. Setting it changes no behaviour. This entry used to be paired with SUPPORT_EMAIL as if both worked, which made the no-op look like a bug. The contact form delivers to SMTP_FROM, then SMTP_USER, then the NOREPLY_EMAIL setting; set one of those instead. The variable is still accepted so an existing .env or 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. Default 14; 0 keeps everything.
  • BACKUP_ENCRYPTION_KEY: 64-hex-char AES-256 key. Falls back to API_KEY_ENCRYPTION_KEY when 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_DB
  • APP_PORT (default 3000): the host port the app is published on.
  • HOST_BIND (default 127.0.0.1): the interface that port binds to. The compose file assumes a reverse proxy on the same host; set 0.0.0.0 to 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.

Context window and max output tokens per AI model, from lib/ai/model-catalog.ts
ProviderModelContext windowMax output tokensNotes
OpenAIGPT-5.4400,000128,000Supports extended thinking.
OpenAIGPT-5.4 mini400,000128,000Supports extended thinking.
OpenAIGPT-5.4 nano400,000128,000Supports extended thinking. API only. Cheapest of the 5.4 line; prefer a larger model for finding verification.
OpenAIGPT-5.2400,000128,000Supports extended thinking.
OpenAIGPT-5400,000128,000-
OpenAIGPT-5 mini400,000128,000-
OpenAIo3-mini (reasoning)200,000100,000Supports extended thinking. Chat Completions doesn't return this model's reasoning text, only the final answer.
OpenAIGPT-4o128,00016,384-
OpenAIGPT-4o mini128,00016,384-
OpenAIGPT-4 Turbo128,0004,096-
Anthropic (Claude)Claude Fable 5.11,000,000128,000Supports extended thinking.
Anthropic (Claude)Claude Opus 51,000,000128,000Supports 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.81,000,000128,000Supports extended thinking.
Anthropic (Claude)Claude Sonnet 51,000,000128,000Supports extended thinking.
Anthropic (Claude)Claude Haiku 4.5200,00064,000Supports extended thinking.
Google GeminiGemini 3 Pro1,000,00064,000Supports extended thinking.
Google GeminiGemini 3 Flash1,000,00064,000Supports extended thinking.
Google GeminiGemini 2.5 Pro1,048,57665,536Supports extended thinking.
Google GeminiGemini 2.5 Flash1,048,57665,536Supports extended thinking.
GroqLlama 3.3 70B131,07232,768-
GroqLlama 3.1 8B (fast)131,072131,072-
MistralMistral Large128,000not verified-
MistralMistral Small128,000not verified-
MistralCodestral256,000not verifiedTuned for code. Same request shape as the other Mistral models.
OpenRouterGPT-4o mini (via OpenRouter)128,00016,384-
OpenRouterLlama 3.3 70B (via OpenRouter)131,072not verified-
Together AILlama 3.3 70B Turbo131,072not verified-
MiniMaxMiniMax M31,000,000131,072Reasoning 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.
MiniMaxMiniMax M2.7 Speed204,800131,072VulnRadar's own managed AI runs this model.
MiniMaxMiniMax M2.7204,800131,072-
DeepSeekDeepSeek Chat128,0008,000-
DeepSeekDeepSeek Reasoner64,0008,000Supports 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,000131,072Supports 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.6500,000128,000Supports extended thinking.
xAI (Grok)Grok 4.5500,000128,000Supports extended thinking.
xAI (Grok)Grok 4.1 Fast2,000,000128,000Supports extended thinking. Largest context of the Grok line, and the cheapest. Good for whole-scan summaries.

Self-Hosting Checklist

  1. Edit lib/config/config-values.ts: app name, URL, emails, branding.
  2. Generate an encryption key: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
  3. Create .env from cp .env.example .env and fill in DATABASE_URL, API_KEY_ENCRYPTION_KEY, NEXT_PUBLIC_APP_URL.
  4. Provision Postgres (via docker compose up -d postgres or external) and ensure DATABASE_URL points to it.
  5. Start the app (npm run dev or docker compose up app). Schema auto-creates on first boot; meta row is written on first scan via db:migrate.
  6. 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]'"
  7. (Optional) Configure SMTP, Stripe, Discord, Turnstile in .env and restart.

Validation

The config system has four validation gates, each catching a different class of mistake:

  1. Build time: npm run typecheck. lib/config/registry.ts and lib/config/constants.ts import each CONFIG_* constant by name, so renaming or removing one fails typecheck at its import site.
  2. Write time: validateSettingValue builds 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.
  3. Server startup: lib/config/env.ts validates every required environment variable with Zod. A missing or malformed value throws before any request is served.
  4. First scan: instrumentation.ts reads vulnradar_schema_meta and refuses to start if schema_version is below CONFIG_MIN_SCHEMA_VERSION.