[claude] nginx config for the-nexus.alexanderwhitestone.com (#211) #217

Merged
Timmy merged 2 commits from claude/issue-211 into main 2026-03-24 04:35:53 +00:00
Member

Fixes #211

What

  • nginx.conf — virtual-host config for the-nexus.alexanderwhitestone.com:

    • HTTP → HTTPS redirect (with ACME challenge passthrough for Certbot)
    • TLS via Let's Encrypt (/etc/letsencrypt/live/…)
    • http2 on, standard security headers (HSTS, X-Content-Type-Options, etc.)
    • gzip for JS, CSS, JSON, WASM, SVG, fonts
    • Long-lived (1y + immutable) cache for hashed assets; no-cache on index.html
    • /ws proxied to localhost:8080 with proper Upgrade / Connection headers
    • All other traffic proxied to the Docker container on port 4200
  • deploy.sh — updated to pull latest main before rebuilding:

    1. git fetch && git reset --hard origin/main
    2. docker compose build && up --force-recreate
    3. nginx -t && systemctl reload nginx

DNS setup required

Add an A record in alexanderwhitestone.com DNS:

the-nexus.alexanderwhitestone.com.  A  <VPS_IP>

Then issue the cert:

sudo certbot certonly --nginx -d the-nexus.alexanderwhitestone.com

Install the config:

sudo cp nginx.conf /etc/nginx/sites-available/the-nexus
sudo ln -sf /etc/nginx/sites-available/the-nexus /etc/nginx/sites-enabled/the-nexus
sudo nginx -t && sudo systemctl reload nginx
Fixes #211 ## What - **`nginx.conf`** — virtual-host config for `the-nexus.alexanderwhitestone.com`: - HTTP → HTTPS redirect (with ACME challenge passthrough for Certbot) - TLS via Let's Encrypt (`/etc/letsencrypt/live/…`) - `http2 on`, standard security headers (HSTS, X-Content-Type-Options, etc.) - gzip for JS, CSS, JSON, WASM, SVG, fonts - Long-lived (`1y + immutable`) cache for hashed assets; `no-cache` on `index.html` - `/ws` proxied to `localhost:8080` with proper `Upgrade` / `Connection` headers - All other traffic proxied to the Docker container on port 4200 - **`deploy.sh`** — updated to pull latest `main` before rebuilding: 1. `git fetch && git reset --hard origin/main` 2. `docker compose build && up --force-recreate` 3. `nginx -t && systemctl reload nginx` ## DNS setup required Add an **A record** in alexanderwhitestone.com DNS: ``` the-nexus.alexanderwhitestone.com. A <VPS_IP> ``` Then issue the cert: ```bash sudo certbot certonly --nginx -d the-nexus.alexanderwhitestone.com ``` Install the config: ```bash sudo cp nginx.conf /etc/nginx/sites-available/the-nexus sudo ln -sf /etc/nginx/sites-available/the-nexus /etc/nginx/sites-enabled/the-nexus sudo nginx -t && sudo systemctl reload nginx ```
claude added 1 commit 2026-03-24 04:32:30 +00:00
feat: add nginx.conf and update deploy.sh for the-nexus.alexanderwhitestone.com
Some checks failed
CI / validate (pull_request) Failing after 22s
CI / auto-merge (pull_request) Has been skipped
51c857902a
- nginx.conf: HTTP→HTTPS redirect, TLS via Let's Encrypt, gzip, long-lived
  cache headers for hashed assets, no-cache on index.html, WebSocket proxy
  for /ws → localhost:8080, static-file proxy to nexus-main Docker (port 4200)
- deploy.sh: git pull origin/main --hard-reset before docker rebuild/restart,
  nginx reload after successful deploy; documents expected VPS layout

Fixes #211

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Timmy merged commit 773d5b6a73 into main 2026-03-24 04:35:53 +00:00
Sign in to join this conversation.