# Copy to .env and adjust. All settings are optional for local development. # Database. Defaults to embedded PostgreSQL (PGlite) stored in ./data/pglite. # DATABASE_URL=postgres://safetylog:password@localhost:5432/safetylog # DATABASE_URL=pglite://./data/pglite # Port for the API server (and the web app in production). # PORT=3000 # The URL people open in their browser. Use https:// in production so session cookies are marked Secure. # PUBLIC_URL=http://localhost:3000 # Email (sign-in links, password resets, invitations, notifications). Without it, emails are # printed to the server log in development and dropped in production. # SMTP_URL=smtps://user:password@smtp.example.com:465 # MAIL_FROM=Open SafetyLog EHS # Time zone used for due dates and daily reminders, e.g. America/Chicago. # TZ=UTC # Where uploaded photos are stored, and the per-file size limit. # UPLOAD_DIR=./data/uploads # MAX_UPLOAD_MB=10 # Docker Compose only: password for the bundled PostgreSQL container. # Use letters and numbers only (it is embedded in a connection URL). # POSTGRES_PASSWORD=change-me