Commit Graph

15 Commits

Author SHA1 Message Date
nineap 7076bbcc78 nginx+TLS перед лендингом на прод VPS вместо голых портов наружу
Порты 3000/3001 закрыты для интернета (ufw allow только с IP VPS данных —
Prometheus). Публичный вход только netrunner-vpn.com через nginx: "/" на
сам лендинг, "/cms-api/" на PocketBase (со сменой префикса на "/api"),
"/api/" на proxy-ws (comments/speedtest, уже с этим префиксом внутри).
2026-07-10 19:07:10 +07:00
nineap bc500c8716 CI сам собирает .env на dev VPS (BOT_USERNAME) из repo Variables
Тот же принцип, что и в netrunner-backend/netrunner-data — deploy-dev
пишет .env из vars.DEV_BOT_USERNAME перед docker compose up, руками на
сервере создавать больше не нужно. Прод по-прежнему без .env — все
значения там хардкожены в docker-compose.yml.
2026-07-10 18:18:57 +07:00
nineap d99026d13b CI: VPS_IP/DEV_VPS_IP переносит из secrets в vars
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-09 16:37:06 +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 1a17837990 deploy update 2026-05-03 16:44:43 +07:00
nineap 9b29b21d22 deploy fix 2026-05-03 16:16:03 +07:00
nineap 7f7be5b0ca deploy fix 2026-05-03 16:14:18 +07:00
nineap 5fc4d05d54 speedtest and ai for toxic comment moderate 2026-05-03 16:12:56 +07:00
nineap 811bfb99b7 optimizations and fixes 2026-04-24 13:49:04 +07:00
nineap 729b6b4f1d pipeline fix 2026-04-21 20:22:24 +07:00
nineap 04d744e2f6 pipeline fix 2026-04-21 19:57:12 +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