2 Commits
Author SHA1 Message Date
Lucas BergerandClaude Opus 4.8 ff35aea0fe chore(dev): allow tunnel host + all interfaces in Vite dev server
Reaching the dev PWA through the Pangolin/newt tunnel failed: Vite's default
host check 403s any non-localhost Host header ('Blocked request'), which the
tunnel health checks on / and /health read as unhealthy. Add allowedHosts:true
and host:true so the dev server accepts the tunnel hostname and listens on all
interfaces. Dev-only config; the production image serves the built PWA itself.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 19:01:49 -04:00
Lucas BergerandClaude Opus 4.8 3b6bea69bf chore(dev): enable DEV_AUTH_BYPASS in the dev compose stack
The api service in docker-compose.dev.yml ran with NODE_ENV=development but
without DEV_AUTH_BYPASS, so the dockerized dev stack enforced OIDC even though
no Authelia is reachable on the dev box. Set DEV_AUTH_BYPASS=true on the dev
override only; guarded by NODE_ENV!='production' and the production image bakes
NODE_ENV=production, so it can never reach a shipped image.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 19:01:49 -04:00
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -44,6 +44,13 @@ export default defineConfig({
}),
],
server: {
// Dev box reached through the Pangolin/newt tunnel: Vite's default host check
// 403s any non-localhost Host header ("Blocked request"), which the tunnel
// health check reads as unhealthy. `true` accepts any host (fine for a private
// throwaway dev tunnel); replace with e.g. ['familysync.example.com'] to scope it.
allowedHosts: true,
// Listen on all interfaces so newt can reach Vite via the box IP, not just localhost.
host: true,
proxy: {
'/health': 'http://localhost:3000',
'/api': 'http://localhost:3000',
+4
View File
@@ -9,6 +9,10 @@ services:
- ./apps/api/src:/app/apps/api/src
environment:
NODE_ENV: development
# Local-dev only: skip OIDC and authenticate as Dev User id 1. Guarded by
# NODE_ENV !== 'production' (and the production image bakes NODE_ENV=production),
# so this can never activate in a shipped image. Required by the e2e harness.
DEV_AUTH_BYPASS: "true"
mariadb:
ports: