WebTransport Proxy Setup Guide
Why a Proxy?
Browser WebTransport requires HTTPS termination. Use a reverse proxy to:
- Handle TLS certificates
- Convert WebTransport → plain UDP
- Forward to SPORE daemon
Caddy Configuration
# Caddyfile
proxy.spore.example {
reverse_proxy https://spore-daemon.internal {
transport http {
versions h3
}
rewrite /spore-transport /udp/127.0.0.1:7439
}
}
Nginx Configuration
# nginx.conf
server {
listen 443 ssl http2;
server_name proxy.spore.example;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location /spore-transport {
proxy_pass http://127.0.0.1:7439/udp;
proxy_http_version 3.0;
}
}
Production Notes
- Use Let's Encrypt for certificates
- Bind to port 443 (browsers require standard HTTPS port)
- Configure firewall to allow UDP 7439
- For development, use self-signed certificates with
#certhashin URL:https://localhost:4433/spore-transport#sha-256=...