mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
WebRTC bridge (5-Applications/webrtc-bridge/): - Go signaling server with pion/webrtc v4 + gorilla/websocket - Browser client with dark UI, RTT/ICE metrics, request builder - HTTP proxy over WebRTC data channel to Traefik - k3s deployment on 361395-1 with hostNetwork - Traefik IngressRoute at /webrtc with stripPrefix middleware - Bypasses Tailscale DERP relay latency (~129ms → direct P2P) Caddy edge config (5-Applications/caddy-edge/): - Caddyfile with Porkbun DNS-01 challenge - JSON config with explicit TLS connection policies - k3s deployment on 361395-1 with hostNetwork - Note: TLS handshake fails in Caddy 2.10.2 (internal error) despite certs being loaded. Using Tailscale Funnel instead. Infrastructure fixes: - Tailscale Funnel enabled on 361395-1 → Traefik - Traefik ingress for 361395-1.tail4e7094.ts.net → Homer - Funnel hostname: https://361395-1.tail4e7094.ts.net
29 lines
569 B
Caddyfile
29 lines
569 B
Caddyfile
{
|
|
email allaun@researchstack.info
|
|
default_sni researchstack.info
|
|
acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
|
|
}
|
|
|
|
(porkbun_tls) {
|
|
tls {
|
|
dns porkbun {
|
|
api_key {$PORKBUN_API_KEY}
|
|
api_secret_key {$PORKBUN_SECRET_KEY}
|
|
}
|
|
}
|
|
}
|
|
|
|
researchstack.info {
|
|
import porkbun_tls
|
|
reverse_proxy 100.102.173.61:30080
|
|
}
|
|
|
|
auth.researchstack.info {
|
|
import porkbun_tls
|
|
reverse_proxy 100.102.173.61:30080
|
|
}
|
|
|
|
*.researchstack.info {
|
|
import porkbun_tls
|
|
redir https://researchstack.info{uri} 301
|
|
}
|