# Copy to .env and fill in before deploying. server/index.mjs reads these from # the real process environment — see docs/DEPLOYMENT.md for how to set them on # your host (systemd, Docker, IIS, etc.). A .env file is NOT loaded automatically # by the server; it's documentation of what to set, not a config loader. # Password for /admin (BlackDice Studio). REQUIRED — the server refuses to # start without it (or with the factory password "blackdice"). For local # development only, set ALLOW_DEV_PASSWORD=1 below instead of setting this. ADMIN_PASSWORD= # Local development only: accept the factory password "blackdice" instead of # requiring ADMIN_PASSWORD. Never set this in a real deployment. ALLOW_DEV_PASSWORD= # Signs admin session tokens. Optional — defaults to a hash derived from # ADMIN_PASSWORD. Set it separately if you want to be able to invalidate all # sessions without changing the password. ADMIN_SECRET= # Port the server listens on. Default: 8787 PORT=8787 # Where published content, uploads and enquiry leads are stored. # Put this on persistent storage — it's the one thing that can't be rebuilt # from git. Default: ./content CONTENT_DIR= # The built site to serve. Default: ./dist DIST_DIR= # Canonical origin used in sitemap.xml and absolute meta URLs. SITE_URL=https://www.blackdice.ai