Commit Graph

14 Commits

Author SHA1 Message Date
nineap df699a1171 Переезд с ghcr.io на встроенный Container Registry Gitea
Build & Push Image / Build and push to Gitea Registry (push) Failing after 15s
Свой netrunner-landing/netrunner-landing-proxy теперь на
gitea.netrunner-vpn.com. Сторонний образ PocketBase (ghcr.io/muchobien/
pocketbase) не трогаю — это чужой образ, живёт там же, где и жил.
2026-07-10 20:44:14 +07:00
nineap 383077e1e6 Метрики /metrics для Next.js и ws-proxy (центральный Prometheus)
proxy-ws (Rust/axum) — тот же паттерн, что api.rs в netrunner-backend:
PrometheusBuilder + middleware, считающий http_requests_total/
http_request_duration_seconds по методу/пути/статусу.

Next.js — app/api/metrics/route.ts на prom-client (явный
runtime="nodejs", т.к. Edge Runtime не тянет perf_hooks/process.*),
отдаёт default-метрики процесса (CPU/память/event loop lag).

Оба порта (3000/3001) перестают быть 127.0.0.1-only — их должен
скрейпить центральный Prometheus на VPS с данными, обязательно
зафайрволить там на его IP (см. комментарии в docker-compose.yml).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-09 23:21:43 +07:00
nineap 899c54e1fc Unify auth with backend cookie sessions; add dev-deploy pipeline
Auth: drop localStorage session token entirely, talk to netrunner-backend
via credentials:"include" HttpOnly cookies shared over the common parent
domain, and redirect to the account subdomain (ЛК) after login instead of
a dead local /profile route.

Config: NEXT_PUBLIC_* values used by client components (API_URL,
ACCOUNT_ORIGIN, BOT_USERNAME, PB_URL) get inlined into the JS bundle at
image build time and can't be overridden by docker-compose environment at
container start. Moved these reads into server components (page.tsx) and
thread them down as props, so one built image can genuinely serve both
prod and dev by config alone.

CI/CD: split the old single auto-deploy-to-prod workflow into build.yml
(build+push on every push to main) and deploy.yml with deploy-dev (auto,
same VPS as netrunner-backend's dev environment) and deploy-prod (manual
dispatch only) — mirrors netrunner-backend's pipeline shape. Added
docker-compose.dev-remote.yml pointing at the dev backend.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 15:26:28 +07:00
nineap 197f0419d7 deploy and cache fixes 2026-05-08 15:49:28 +07:00
nineap 2b28bee41e compose update 2026-05-03 16:59:59 +07:00
nineap 8fd225a971 compose update 2026-05-03 16:46:10 +07:00
nineap c425f484b4 deploy fix 2026-05-03 16:16:39 +07:00
nineap 5fc4d05d54 speedtest and ai for toxic comment moderate 2026-05-03 16:12:56 +07:00
nineap 84f58220d2 rust gateway for cms and comments filter 2026-04-24 03:33:53 +07:00
nineap de5bf60e73 cms fix 2026-04-21 20:38:00 +07:00
nineap 4f74ee5e1d landing url to cms fixes 2026-04-21 20:32:09 +07:00
nineap e4e9435829 cms fix 2026-04-21 20:27:39 +07:00
nineap ae8fb589e1 cms in docker compose 2026-04-21 19:54:04 +07:00
nineap 34eaa55e70 ci 2026-04-21 19:33:42 +07:00