Public Access
1
0

feat: split admin into dedicated web surface

This commit is contained in:
pguerrerox
2026-05-28 23:04:03 +00:00
parent ce49497a6a
commit d71f2f1f8a
13 changed files with 374 additions and 23 deletions
+4 -2
View File
@@ -1,10 +1,12 @@
# App runtime
NODE_ENV="development"
# Frontend env vars for the Vite app
# Frontend env vars for the Vite apps
# Use "/api" for same-origin nginx proxy setups (app/admin subdomain or docker web surfaces).
VITE_API_BASE_URL="http://localhost:4000/api"
VITE_GOOGLE_MAPS_PLATFORM_KEY="YOUR_BROWSER_MAPS_KEY"
WEB_PORT="3000"
ADMIN_WEB_PORT="3001"
# Backend env vars
## For Docker Compose deployments, point DATABASE_URL at the internal "db" host.
@@ -13,7 +15,7 @@ DATABASE_URL="postgres://postgres:postgres@localhost:5432/leads4less"
COOKIE_SECRET="CHANGE_ME_IN_LOCAL_ENV"
APP_HOST="0.0.0.0"
APP_PORT="4000"
APP_ORIGIN="http://localhost:3000"
APP_ORIGIN="http://localhost:3000,http://localhost:3001"
SESSION_TTL_DAYS="30"
GOOGLE_MAPS_SERVER_KEY="YOUR_SERVER_MAPS_KEY"