From 28934aaafc4899c18060b270d58f0c1f783fcbd1 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Tue, 21 Jul 2026 15:04:30 +0700 Subject: [PATCH] docs: update Tailscale IPs and node names to match live infrastructure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ARCHITECTURE.md: orange → orangevps (100.79.111.61), update imrnes IP to 100.121.180.82, archlinux IP to 100.84.39.83, remove offline laptop node - README.md: update VPS table, env examples, troubleshooting IPs - CONTRIBUTING.md: fix VPS name and IP in deploy section Co-Authored-By: Claude Opus 4.8 (1M context) --- ARCHITECTURE.md | 18 ++++++++---------- CONTRIBUTING.md | 2 +- README.md | 17 ++++++++--------- 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 2dedc2d..cd1f4e9 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -87,10 +87,9 @@ docker compose -f traefik.yml -f shared.yml -f scraper.yml up -d ```mermaid graph TB subgraph "Tailnet (100.64.0.0/10)" - IMRNES["imrnes (100.108.1.124)"] - ORANGE["orange (100.96.248.86)"] - ARCH["archlinux (100.114.19.66)"] - LAPTOP["laptop-2f6e1iph (100.86.195.29)"] + IMRNES["imrnes (100.121.180.82)"] + ORANGEVPS["orangevps (100.79.111.61)"] + ARCH["archlinux (100.84.39.83)"] end subgraph "imrnes Services" @@ -98,7 +97,7 @@ graph TB REDIS[Redis] end - subgraph "orange Containers" + subgraph "orangevps Containers" TRAEFIK[Traefik :443] SCRAPER[scraper-api :4091] end @@ -106,9 +105,8 @@ graph TB TRAEFIK --> SCRAPER style IMRNES fill:#3a7,color:#fff - style ORANGE fill:#37a,color:#fff + style ORANGEVPS fill:#37a,color:#fff style ARCH fill:#773,color:#fff - style LAPTOP fill:#777,color:#fff ``` Container-to-Tailscale connectivity requires a systemd service that adds a route to the main routing table: @@ -117,7 +115,7 @@ Container-to-Tailscale connectivity requires a systemd service that adds a route ip route add 100.64.0.0/10 dev tailscale0 table main ``` -This is managed by `/etc/systemd/system/tailscale-routes.service` on the `orange` VPS. +This is managed by `/etc/systemd/system/tailscale-routes.service` on the `orangevps` VPS. ## Data Flow @@ -133,7 +131,7 @@ sequenceDiagram participant Redis as Redis (imrnes via Tailscale) User->>DNS: asepharyana.my.id - DNS->>User: A/AAAA record → orange VPS IP + DNS->>User: A/AAAA record → orangevps VPS IP User->>Traefik: HTTPS request :443 Traefik->>Traefik: TLS termination Traefik->>Traefik: Middleware chain (headers, rate-limit, buffer) @@ -193,7 +191,7 @@ flowchart LR ### VPS Deployment -The `orange` VPS (Tailscale `100.96.248.86`) hosts all application containers: +The `orangevps` VPS (Tailscale `100.79.111.61`) hosts all application containers: 1. GitHub Actions SSHes into the VPS 2. Production secrets are written as `.env` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6810afd..e654d2a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -175,7 +175,7 @@ Common scopes: `scraper`, `infra`, `ci`, `deps` - Updates compose manifests to use the new SHA tags 6. **Deployment Pipeline** triggers after a successful Docker build: - - SSHes into the VPS (`orange`, Tailscale IP `100.96.248.86`) + - SSHes into the VPS (`orangevps`, Tailscale IP `100.79.111.61`) - Pulls updated Docker images - Recreates only the changed containers - All services share the `app-shared-net` Docker network diff --git a/README.md b/README.md index 54cab6d..6c55d3e 100644 --- a/README.md +++ b/README.md @@ -63,12 +63,11 @@ Refer to each service's own documentation for API docs. Semua VPS terhubung via **Tailscale**. Setiap VPS punya IP Tailscale dan service berkomunikasi antar VPS melalui Tailscale network (`100.64.0.0/10`). -| VPS | Tailscale IP | Service | -| :---------------- | :-------------- | :------------------------------------- | -| `imrnes` | `100.108.1.124` | PostgreSQL (`hub`), Redis | -| `orange` | `100.96.248.86` | App containers (Traefik, 9Router, dll) | -| `archlinux` | `100.114.19.66` | _(development machine)_ | -| `laptop-2f6e1iph` | `100.86.195.29` | _(offline)_ | +| VPS | Tailscale IP | Service | +| :--------- | :-------------- | :------------------------------------- | +| `imrnes` | `100.121.180.82` | PostgreSQL, Redis | +| `orangevps` | `100.79.111.61` | App containers (Traefik, scraper-api) | +| `archlinux` | `100.84.39.83` | _(development machine)_ | ### Container → Tailscale Connectivity @@ -95,10 +94,10 @@ Service yang connect ke Tailscale IP: ```env # PostgreSQL di imrnes -DATABASE_URL=postgres://user:pass@100.108.1.124:5432/dbname +DATABASE_URL=postgres://user:pass@100.121.180.82:5432/dbname # Redis di imrnes -REDIS_URL=redis://100.108.1.124:6379 +REDIS_URL=redis://100.121.180.82:6379 ``` #### Persistent Systemd Service @@ -160,7 +159,7 @@ docker exec node -e " const net = require('net'); const c = new net.Socket(); c.setTimeout(5000); -c.connect(5432, '100.108.1.124', () => { console.log('OK'); c.end(); }); +c.connect(5432, '100.121.180.82', () => { console.log('OK'); c.end(); }); c.on('error', e => { console.log('FAIL:', e.code); }); c.on('timeout', () => { console.log('TIMEOUT'); c.destroy(); }); "