{
"id": "20260924200548-a2b3fbd1",
"kind": "doc",
"target": "10-systems/hosts/gnauth.md",
"summary": "Add 2026-09-24 second deploy (af9d3f9) to gnauth deployment history",
"reason": "Second gnexus-auth update deployed on 2026-09-24 (be4aea0 → af9d3f9), verified live.",
"payload": {
"content": "---\ntitle: VM gnauth (gnexus-auth)\ntype: host\nip: 192.168.1.167\npurpose: Central identity service (gnexus-auth, Laravel) for the Gnexus platform\nowner: gmikcon\nstatus: active\nconfidence: 100\nlast_reviewed: 2026-09-24\nreview_interval: 90d\nsource_of_truth: ssh-host-and-live-verified\n---\n\n# VM gnauth (192.168.1.167)\n\n## Overview\n\n- **Hostname**: gnauth\n- **IP**: 192.168.1.167 (home LAN)\n- **OS**: Ubuntu 22.04.5 LTS, kernel 5.15.0-187-generic\n- **Resources**: 2 vCPU, 3.8 GiB RAM\n- **User**: ubuntu (sudo password in gnexus-creds secret `gnauth-gnbook-ssh`, id 11932ea2-998b-4b2c-a722-1bccc68454cd; same credentials also cover gnbook 192.168.1.170)\n- **Hypervisor**: HP ProLiant DL380 G6 (192.168.1.130, bserv) — VM, per gnexus-creds secret notes\n\n## Service: gnexus-auth\n\n- **Stack**: Laravel (PHP 8.3 FPM) + nginx/1.18.0 + MySQL (system, 127.0.0.1:3306)\n- **Code root**: `/var/www/gnexus-auth` (owned by www-data, git via sudo)\n- **Public URL**: https://auth.gnexus.space/ (TLS terminates on internal-proxy-vps .226, proxy mapping auth.gnexus.space → http://192.168.1.167)\n- **Repo**: https://git.gnexus.space/git/root/gnexus-auth.git (remote embeds root credentials)\n- **Queue worker**: systemd unit `gnexus-auth-queue.service` (User=www-data)\n- **Scheduler**: root cron `php artisan schedule:run` every minute\n- **Deploy doc**: `/home/ubuntu/gnexus-auth-deployment.md` on the host\n\n## Deploy procedure (verified 2026-09-24)\n\n1. `cd /var/www/gnexus-auth && sudo git pull` (fast-forward on master)\n2. Check `git diff --stat <old>..<new> -- composer.lock package.json package-lock.json database/migrations/` — if empty, no composer/npm/migrate needed (assets are committed to the repo)\n3. Align `.env` with `.env.example` changes (e.g. SESSION_LIFETIME)\n4. `php artisan config:clear route:clear view:clear queue:restart`\n5. `sudo systemctl restart php8.3-fpm` (opcache reset)\n6. Verify: `curl http://127.0.0.1/` → 200, and public URL from outside (hairpin NAT blocks access from the host itself)\n\n## Deployment history\n\n- **2026-09-24 (2nd update)**: updated be4aea0 → af9d3f9 (country selection at registration with timezone driven by country; auth screens centered at 420px). No deps/migrations needed. Caches cleared, php8.3-fpm restarted, queue worker active. Verified: /register 200 with new app-main-auth layout.\n- **2026-09-24**: updated b0f50ed → be4aea0 (app-shell layout, admin tabs in URL hash, HTTPS force outside local, web session 30 days / access token 30 minutes). SESSION_LIFETIME set to 43200 in .env. php8.3-fpm restarted, queue worker recovered (had been failed since 2026-09-01 due to transient MySQL outage)."
},
"status": "applied",
"created_at": "2026-09-24T20:05:48Z",
"updated_at": "2026-09-24T20:05:49Z",
"applied_at": "2026-09-24T20:05:49Z",
"validation": {
"status": "ok",
"issue_count": 0,
"issues": []
}
}