feat: Dockerized dev server, login bypass, README #1

Merged
David merged 1 commit from feat/docker-dev-stack into main 2026-05-04 05:30:33 +02:00
Owner

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

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<AuthContext>". 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>
feat: Dockerized dev server, login bypass, README
Some checks failed
Create release / Create release from merged PR (pull_request) Has been cancelled
1eecf4a67c
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<AuthContext>".

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>
David merged commit ea818f89d9 into main 2026-05-04 05:30:33 +02:00
David deleted branch feat/docker-dev-stack 2026-05-04 05:30:33 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!1
No description provided.