Merge pull request 'chore(dev): make the dev stack reachable through the Pangolin tunnel' (#20) from chore/dev-stack-config into main
Publish / publish (push) Successful in 21s
Publish / publish (push) Successful in 21s
Reviewed-on: #20
This commit was merged in pull request #20.
This commit is contained in:
@@ -44,6 +44,13 @@ export default defineConfig({
|
|||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
server: {
|
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: {
|
proxy: {
|
||||||
'/health': 'http://localhost:3000',
|
'/health': 'http://localhost:3000',
|
||||||
'/api': 'http://localhost:3000',
|
'/api': 'http://localhost:3000',
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ services:
|
|||||||
- ./apps/api/src:/app/apps/api/src
|
- ./apps/api/src:/app/apps/api/src
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development
|
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:
|
mariadb:
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user