# 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 before deploying — # without it the server falls back to the development password "blackdice" # and prints a warning on startup. ADMIN_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