π‘οΈ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Unraid template: add DB_ADMIN_USER/DB_ADMIN_PASSWORD (#221 follow-up)
sassanix5d405415e44e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 239c3c8..623ea82 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,7 +4,7 @@- **Dependency and runtime updates:** gunicorn 24.1.1 β 26.2.0 and gevent 24.11.1 β 26.9.0 (the new gevent ships Python 3.15 wheels, ending the from-source compile that slowed multi-arch Docker builds), python-dateutil 2.9.0 β 3.0.0, setuptools 84.0.0 β 84.2.1, and the Python 3.15 slim base image digest refreshed.-- **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. Both shipped Docker Compose files set all four explicitly (the Docker/ variant was missing the admin pair and relied on the removed defaults β it has been completed with the same values), 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`).+- **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. Both shipped Docker Compose files set all four explicitly (the Docker/ variant was missing the admin pair and relied on the removed defaults β it has been completed with the same values), so compose installs are unaffected; the Unraid app template has likewise been completed with the two admin variables; 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.diff --git a/unraid/warracker.xml b/unraid/warracker.xmlindex 927e9ad..71ed863 100644--- a/unraid/warracker.xml+++ b/unraid/warracker.xml@@ -50,6 +50,14 @@Description="PostgreSQL password." Type="Variable"Display="always" Required="true" Mask="true"></Config>+ <Config Name="DB_ADMIN_USER" Target="DB_ADMIN_USER" Default="warracker_admin" Mode=""+ Description="PostgreSQL admin username, used for database migrations. Required since 1.0.5 (the app no longer assumes it). Pre-filled with the value Warracker used to assume; change it if your PostgreSQL admin user differs." Type="Variable"+ Display="always" Required="true" Mask="false">warracker_admin</Config>++ <Config Name="DB_ADMIN_PASSWORD" Target="DB_ADMIN_PASSWORD" Default="default_admin_password" Mode=""+ Description="PostgreSQL admin password, used for database migrations. Required since 1.0.5 (the app no longer assumes it). Pre-filled with the value Warracker used to assume; change it to your PostgreSQL admin password." Type="Variable"+ Display="always" Required="true" Mask="true">default_admin_password</Config>+<Config Name="SECRET_KEY" Target="SECRET_KEY" Default="" Mode=""Description="Secret key for Flask sessions and JWT. Generate a random string (e.g. openssl rand -hex 32)." Type="Variable"Display="always" Required="true" Mask="true"></Config>