.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
INFRAGUARD_DOMAIN
── Domain ──────────────────────────────────────────────────────────── Primary domain(s) for the redirector. Used for TLS cert generation…
INFRAGUARD_DOMAIN_EMAIL
INFRAGUARD_LETSENCRYPT
── TLS Certificates ───────────────────────────────────────────────── Option 1: Let's Encrypt (set INFRAGUARD_LETSENCRYPT=true) Certbot…
INFRAGUARD_TLS_CERT
Option 2: Bring your own certs (set paths manually) If INFRAGUARD_LETSENCRYPT=false, InfraGuard uses these paths. If both are missing, a…
INFRAGUARD_TLS_KEY
secret
INFRAGUARD_API_TOKEN
secret
── Dashboard API ───────────────────────────────────────────────────── Bearer token required for all /api/* endpoints. Generate one with:…
INFRAGUARD_CS_UPSTREAM
── Upstream Teamservers ────────────────────────────────────────────── Address of your C2 teamserver(s). Referenced in config.yaml via…
INFRAGUARD_MYTHIC_UPSTREAM
INFRAGUARD_GEOIP_DB
── GeoIP ───────────────────────────────────────────────────────────── Paths to MaxMind GeoLite2 databases (all optional). Download from:…
INFRAGUARD_GEOIP_ASN_DB
INFRAGUARD_GEOIP_COUNTRY_DB
INFRAGUARD_DB_PATH
── Database ────────────────────────────────────────────────────────── Path to the SQLite tracking database. IMPORTANT: In Docker, this…
INFRAGUARD_HEALTH_PATH
── OPSEC ───────────────────────────────────────────────────────────── Custom health check endpoint path. Change this to avoid…
PWNDROP_TOKEN
secret
── Content Delivery (PwnDrop) ──────────────────────────────────────── PwnDrop API token for authenticated payload delivery. Get this from…
INFRAGUARD_LOG_LEVEL
── Logging ───────────────────────────────────────────────────────────
brew install flyctl && fly launch --from https://github.com/0xsyr0/infraguard
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/0xsyr0/infraguard
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/0xsyr0/infraguard