User guide¶
GoC Private AI¶
Order the chaos.
Living reference for the self-hosted Ollama stack on the Hostinger VPS — what is running, how it is hardened, and how to change it without painting yourself into a corner.
Architecture¶
flowchart TB
subgraph Clients["Your devices"]
You[You]
end
subgraph Public["Public internet"]
Web["nginx :80 / :443<br/>cbgoc-cloud.top"]
SSH["sshd :<SSH_PORT><br/>geo-restricted + fail2ban"]
end
subgraph Tailnet["Tailscale"]
TS["tailscale0 / tailscale serve"]
end
subgraph VPS["Hostinger VPS · goc-vps"]
OLL["Ollama · qwen3:4b<br/>127.0.0.1:11434"]
Prompts["prompts-chat<br/>127.0.0.1:8090"]
Exp["node_exporter + nginx exporter"]
Local["Grafana, Nautobot, Postgres, Redis"]
end
subgraph Home["linux-01"]
Prom["Prometheus + Alertmanager"]
end
You --> Web
You --> SSH
You --> TS
TS --> SSH
TS --> Prompts
Prompts --> OLL
TS --> Exp
Exp --> Prom
Prom -->|"ntfy"| You
How to update this guide¶
This site is meant to stay in lockstep with the box. When you change a config, a unit, or a model:
- Edit the matching file under
config/(keep placeholders for IPs, the SSH port, geo feeds, the ntfy topic, and the tailnet name). - Update the relevant page in
docs/and add a dated entry toCHANGELOG.md. - Preview with
mkdocs serve, then push tomain. CI runsmkdocs build --strictand publishes GitHub Pages.
Deployment on 24–25 Nov 2026¶
These pages document everything changed on the Hostinger KVM 2 VPS srv1838202 (Tailscale name goc-vps) and on the home monitoring host linux-01 on 24–25 Nov 2026. It is Level 3 of the owner's "Uncensored AI in 3 Levels" guide: a small local model on an always-on server, with the hardening the guide asks for.
No secrets, keys, tokens or real IPs are stored in this repository. Placeholders:
<HOME_IP>,<VPS_PUBLIC_IP>,<VPS_TAILSCALE_IP>,<LINUX01_TAILSCALE_IP>,<SSH_PORT>,<GEO_ZONE4_URL>,<GEO_ZONE6_URL>,<NTFY_TOPIC>,<TAILNET>.
At a glance¶
| Area | State |
|---|---|
| Host | Ubuntu 24.04.4 LTS, 2 vCPU, 7.8 GiB RAM, 100 GB disk, kernel 6.8.0-151 |
| Public services | nginx on 80/443 (cbgoc-cloud.top, angels-auto.cbgoc-cloud.top), unchanged |
| Local AI | Ollama 0.40.17, model qwen3:4b (2.5 GB on disk, ~3.2 GB loaded), on 127.0.0.1:11434 only |
| Prompts library | prompts-chat: lightweight Python 3 UI + API (3,157 prompts from willyd61/awesome-chatgpt-prompts) on 127.0.0.1:8090, tailnet-only via tailscale serve |
| Memory | 4 GB swapfile, vm.swappiness=10; Ollama capped at 5 GB (MemoryMax) |
| Patching | 53 updates applied, rebooted to new kernel, unattended-upgrades on |
| SSH | Port <SSH_PORT> is publicly reachable and geo-restricted; fail2ban; root key-only; confirm the current password-authentication setting in the sshd drop-in |
| SSH login alerts | ntfy push on every SSH session (PAM hook) |
| Firewall | ufw default deny in; <SSH_PORT> + 80/443 open; node/nginx exporters on tailscale0 only |
| Monitoring | linux-01 Prometheus vps-node job: Ollama/prompts-chat/fail2ban/ssh/geo units + security metrics; 5 alert rules |
| Accounts | Unused jconover account (passwordless sudo) archived and removed |
Documents¶
- install.md - what was installed and every config file, with how to tweak each
- operations.md - day-to-day use, checks, and rollback for each piece
- security.md - SSH, fail2ban, geo-block, login alerts, firewall, and open risks
- changelog.md - timestamped (ET) list of every change
config/- sanitized copies of the deployed configs and scripts
Quick links: Ollama · fail2ban · Geo-block · ntfy alerts · Monitoring · Rollback · Prompts library
Prompts library (prompts.chat)¶
- Deployed: Custom lightweight Python 3 stdlib service (
prompts-chat.service,/opt/prompts-chat/app.py, ~47 MiB RSS) loading 3,157 prompts fromprompts.csvin the owner's fork (willyd61/awesome-chatgpt-prompts), talking to local Ollama on127.0.0.1:11434(qwen3:4bdefault,/no_thinktoggle). Why not the full Next.js + Prisma/Postgres app: on a 7.8 GiB / 2 vCPU VPS where Ollama is capped at 5 GiB alongside Nautobot, Postgres, Redis, Grafana, and nginx, the Node/DB stack would crowd memory and swap. - How to reach it: Tailnet-only via
tailscale serveathttp://goc-vps:8090(orhttp://goc-vps.<TAILNET>.ts.net:8090), proxying to127.0.0.1:8090, plus/usr/local/bin/prompts-askon the VPS. Not exposed onufwor public nginx (80/443). - Updates & monitoring:
prompts-chat-update.timerrefreshesprompts.csvweekly (Sundays 04:30 UTC + jitter);node_exportertracksprompts-chat.service; linux-01 alerts onVPSPromptsChatDownandVPSPromptsChatMetricMissing. - Details: Install & config · Runbook · Security
Out of scope (not done)¶
abliteration.ai API key (Level 1), Fish Audio voice (Step 8), agent harness wiring, VPS plan changes or purchases, Hostinger snapshots/backups, Tailscale ACL review.
Responsible use¶
No refusals does not mean no rules. qwen3:4b in this stack is the official library model, not an abliterated build, but you still own what you generate and how you wire tools to it. Copyright, privacy, and computer-misuse law still apply. Keep any agent tools on least privilege.
The original Level 3 design is documented in the internal handoff Uncensored AI in 3 Levels (based on Jack Roberts' November 2026 video). What is running today is that design, plus the hardening, monitoring, and prompts library described in these pages.