feat: Dockerized dev server, login bypass, README #1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/docker-dev-stack"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Run dx serve in Docker via compose.yml, bound to the host LAN IP (resolved from br0/eth0 in the just dev recipe) so the dev server stays off the public internet on a VPS host. Switch dev port from 8080 to 4301 (Dioxus.toml [server] port to 4300) to dodge a clash with stalwart-sandbox on 8080.
Add an opt-in admin login bypass for local dev: when ADMIN_EMAIL and ADMIN_PASSWORD are both set and non-empty at compile time, use_auth_provider seeds AuthContext with an admin user and LoginPage redirects straight to the dashboard. The bypass is gated behind cfg(debug_assertions), so it is compiled out of any release build entirely. Vars are loaded from .env via compose env_file (optional), and .dockerignore excludes .env from every Docker build context as defense in depth.
Wire use_auth_provider into the App root so use_auth() consumers stop panicking with "Could not find context Signal".
Add a README documenting the stack, justfile recipes, ports, the login bypass pattern, and troubleshooting.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com