Skip to content

docs(deploy): add nginx TLS reverse-proxy example#98

Open
acooks wants to merge 1 commit into
masterfrom
docs/nginx-tls-reverse-proxy
Open

docs(deploy): add nginx TLS reverse-proxy example#98
acooks wants to merge 1 commit into
masterfrom
docs/nginx-tls-reverse-proxy

Conversation

@acooks

@acooks acooks commented Jun 19, 2026

Copy link
Copy Markdown
Owner

What

  • deploy/jittertrap-nginx.conf.example — TLS termination + websocket-aware proxy_pass to jt-server.
  • A "Running behind an HTTPS reverse proxy" section in deploy/README.md (expands the existing one-line mention).

Why

jt-server serves the HTML5 client and the websocket on one HTTP port. Exposing it over HTTPS needs a proxy that terminates TLS and forwards the websocket Upgrade/Connection headers — easy to get wrong (omit them and the live-data feed silently fails to connect). This gives users a working template.

Pairs with #96 (the client now selects wss:// automatically on HTTPS pages).

Testing

This is the exact config used on a live deployment (nginx + certbot in front of jt-server): the page loads over HTTPS and the websocket upgrade completes (101 Switching Protocols over wss://).

🤖 Generated with Claude Code

Add a ready-to-edit nginx config that terminates TLS and reverse-proxies
to jt-server, including the websocket Upgrade handling, plus a
"Running behind an HTTPS reverse proxy" section in the deployment guide.

Pairs with the wss:// client fix so JitterTrap can be served over HTTPS.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant