# Ostrakon self-host: the one configuration file. # cp .env.example .env # then fill the three secrets below. Compose refuses to start while one of them is empty, # and the API refuses a short or placeholder JWT secret. Every API setting is an # OSTRAKON_* variable (docs/configuration.md, "Config key reference"): add any of them here # and add it to the `environment:` of the api service in compose.yaml. # ------------------------------------------------------------------------------------------ # Images # ------------------------------------------------------------------------------------------ # The images are NOT published yet: this builds them from the clone (compose.build.yaml). # Once ghcr.io/ostrakon-app/* has releases, delete this line and pin OSTRAKON_VERSION. COMPOSE_FILE=compose.yaml:compose.build.yaml # Tag of ghcr.io/ostrakon-app/api and ghcr.io/ostrakon-app/web. `latest` until releases exist. #OSTRAKON_VERSION=latest # ------------------------------------------------------------------------------------------ # Secrets (REQUIRED, no default on purpose) # ------------------------------------------------------------------------------------------ # Generate each one: openssl rand -base64 48 (the database password: openssl rand -hex 24) # Never reuse a value from a doc or a screenshot. Changing the JWT secret logs everyone out. # Changing the pepper locks every account out (the OSP index is keyed by it): back it up. OSTRAKON_AUTH_JWT_SECRET= OSTRAKON_AUTH_OSP_PEPPER= OSTRAKON_DATABASE_PASSWORD= # ------------------------------------------------------------------------------------------ # Mode (a): try it locally over plain HTTP (the default) # ------------------------------------------------------------------------------------------ # Open http://localhost:8080. Bound to this machine only. OSTRAKON_BIND_ADDRESS=127.0.0.1 OSTRAKON_HTTP_PORT=8080 # Plain HTTP: browsers refuse a Secure cookie on anything but localhost. Keep false here, # set it back to true (or delete the line) in mode (b). OSTRAKON_COOKIE_SECURE=false # ------------------------------------------------------------------------------------------ # Mode (b): your own domain, automatic HTTPS (Caddy gets the certificate) # ------------------------------------------------------------------------------------------ # The domain must already resolve to this machine, and ports 80 and 443 must be reachable # from the Internet (Let's Encrypt checks it). Replace the mode (a) lines above with: #OSTRAKON_SITE_ADDRESS=ostrakon.example.com #OSTRAKON_BIND_ADDRESS=0.0.0.0 #OSTRAKON_HTTP_PORT=80 #OSTRAKON_HTTPS_PORT=443 #OSTRAKON_COOKIE_SECURE=true # READ the "first account" section of README.md before you expose anything. # ------------------------------------------------------------------------------------------ # Registrations # ------------------------------------------------------------------------------------------ # Open until the first account exists, then set to false and restart (README.md). On an # empty instance the first account is the admin: whoever registers first owns it. #OSTRAKON_SIGNUP_ENABLED=true # ------------------------------------------------------------------------------------------ # GeoIP (optional) # ------------------------------------------------------------------------------------------ # Off by default: the stack starts without any database. To enable, put GeoLite2-City.mmdb # in ./geoip (MaxMind does not allow redistribution, README.md says where to get it) and: #OSTRAKON_GEOIP_ENABLED=true # ------------------------------------------------------------------------------------------ # Other # ------------------------------------------------------------------------------------------ # Another reverse proxy in front of Caddy: its address (CIDRs or IPs, space-separated). # Empty trusts nobody. Never list a range you do not control. #OSTRAKON_TRUSTED_PROXIES= #OSTRAKON_LOG_LEVEL=info