This commit is contained in:
Kirill
2026-05-23 11:17:29 +05:00
parent 347fcac6a7
commit 4bcced4e08
2 changed files with 8 additions and 0 deletions
+8
View File
@@ -67,6 +67,14 @@ cd client && npm run build # full typecheck + build
- Yandex callback: `{SERVER_PUBLIC_URL}/api/auth/oauth/yandex/callback`
- Required env vars: `VK_CLIENT_ID`, `VK_CLIENT_SECRET`, `YANDEX_CLIENT_ID`, `YANDEX_CLIENT_SECRET`, `SERVER_PUBLIC_URL`, `CLIENT_PUBLIC_URL`
## Infrastructure (deployment)
- **VPS** runs Nginx Proxy Manager (NPM), connected via Netbird peer-to-peer VPN to the dev machine
- **Local dev machine** runs the project (server + client), also a Netbird peer
- **Traffic flow**: Browser → Domain (A record → VPS IP) → NPM → Netbird tunnel → Local dev machine (`server:3333`)
- NPM manages SSL, domains, and proxy hosts
- `trustProxy: true` on Fastify — `request.ip` works correctly through NPM/Netbird chain
## Notable quirks
- `.env` is gitignored. Copy `.env.example` to `.env` for local dev.