# Settings for self-hosted Redbrix. Copy this file to .env, beside docker-compose.yml. # ── Required ────────────────────────────────────────────────────────────────────────────────── # The address people will use to reach Redbrix, as typed in a browser. APP_URL=http://localhost:8080 # Two keys. Generate each with: # docker run --rm ghcr.io/redbrix-io/redbrix php artisan key:generate --show # Keep a copy of both somewhere safe. Without CREDENTIAL_KEY, saved database passwords cannot be # read, and nobody, including Redbrix, can recover them. APP_KEY= CREDENTIAL_KEY= # The password for Redbrix's own database (the mariadb service). Choose a long random one. DB_PASSWORD= # ── Optional ────────────────────────────────────────────────────────────────────────────────── # Your licence key, if you would rather keep it here than paste it into Redbrix at setup and on # the Licence page. When set, it takes priority, and changing it needs a restart. # REDBRIX_LICENCE_KEY= # The port Redbrix listens on, on this machine. # REDBRIX_PORT=8080 # Which release to run. "latest" follows every release; "1.4" stays on 1.4 and its fixes, so you # choose when to move to 1.5. # REDBRIX_IMAGE=ghcr.io/redbrix-io/redbrix:1.4 # Email, for invitations and password resets. Without it, Redbrix gives you invitation links to # send yourself, and forgotten passwords are reset with "php artisan redbrix:reset-password". # MAIL_MAILER=smtp # MAIL_HOST=smtp.example.com # MAIL_PORT=587 # MAIL_USERNAME= # MAIL_PASSWORD= # MAIL_FROM_ADDRESS=redbrix@example.com # MAIL_FROM_NAME=Redbrix # Errors emailed to this address as they happen (needs the email settings above). Empty: none. # ALERTS_EMAIL=it@example.com # HTTPS through the caddy service in docker-compose.yml, which needs a Caddyfile beside it (the # installer and the Customer Portal write one; README.md explains). REDBRIX_BIND=127.0.0.1 keeps # Redbrix's own plain-HTTP port for this machine only. Set TRUSTED_PROXIES=* and # SESSION_SECURE_COOKIE=true too. Caddy's ports are 80 and 443 unless changed here. # COMPOSE_PROFILES=https # REDBRIX_BIND=127.0.0.1 # REDBRIX_HTTP_PORT=80 # REDBRIX_HTTPS_PORT=443 # Behind a reverse proxy that ends HTTPS: the proxy's address (or * to trust any), so links and # cookies use https. Also set SESSION_SECURE_COOKIE=true once Redbrix is only reached over HTTPS. # TRUSTED_PROXIES=* # SESSION_SECURE_COOKIE=true # Redbrix's own data on a database server you already run, instead of the mariadb service. # See the note at the top of docker-compose.yml. # DB_HOST= # DB_PORT=3306 # DB_DATABASE=redbrix # DB_USERNAME=redbrix