π‘οΈ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Complete the #221 pairing: env.example + changelog
sassanix6312e19e5e44
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9d1107e..003e39e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,8 @@## 1.0.5 - Unreleased+- **Database credentials have no built-in defaults anymore (#221, by Nam0101) β breaking for non-compose installs:** `DB_USER`, `DB_PASSWORD`, `DB_ADMIN_USER`, and `DB_ADMIN_PASSWORD` no longer fall back to the values that used to be printed in this repository, and the app refuses to start in production mode when any of them is missing, naming the missing variables. The shipped Docker Compose files already set all four explicitly, so compose installs are unaffected; anyone running the app another way (bare metal, LXC) must make sure all four are set in the environment. The root `env.example` now lists all four (it previously lacked `DB_USER` and `DB_ADMIN_USER`).+- **Mobile photo capture with client-side downscaling (#249, by canni):** a new "Take Photo" button opens the camera directly on mobile β the photo never enters the phone's gallery β and product photos are downscaled in the browser to at most 2048px (JPEG) before upload, so a multi-megabyte phone photo stops inflating storage and slowing uploads. Downscaling is EXIF-orientation-safe, renders transparency on white, never produces a larger file, passes animated GIFs through untouched, and falls back to the original file on any error. Applies to the add and edit photo inputs on the main and status pages.- **Admin users list: sign-in provider shown, email editable (#134):** the admin Users list now has a Provider column (Local / OIDC) so it is obvious how each account signs in β the API reports the provider without exposing the raw OIDC subject. The Edit User dialog's email field, previously shown disabled, is now editable: an admin can fix a user's email without touching the database, with format and uniqueness validation.diff --git a/env.example b/env.exampleindex 5f6a6b7..3f8917f 100644--- a/env.example+++ b/env.example@@ -2,8 +2,15 @@# Copy this file to .env and modify the values as needed# Database Configuration+# All four variables are REQUIRED: the application has no built-in+# defaults for database credentials and refuses to start in+# production mode when any of them is missing.+DB_USER=warranty_userDB_PASSWORD=your_secure_database_password+DB_ADMIN_USER=warracker_adminDB_ADMIN_PASSWORD=your_secure_admin_password+# DB_HOST=warrackerdb+# DB_NAME=warranty_db# DB_PORT=5432# Application Security