feat: Host a relay on Hetzner (#114)

We are hosting a [MoQ](https://quic.video) relay on a remote (bare
metal) server on Hetzner

With a lot of help from @victorpahuus
This commit is contained in:
Wanjohi
2024-09-26 21:34:42 +03:00
committed by GitHub
parent c4a6895726
commit bae089e223
74 changed files with 7107 additions and 96 deletions

View File

@@ -0,0 +1,18 @@
// Utility function to download a Uint8Array for debugging.
export function download(data: Uint8Array, name: string) {
const blob = new Blob([data], {
type: "application/octet-stream",
})
const url = window.URL.createObjectURL(blob)
const a = document.createElement("a")
a.href = url
a.download = name
document.body.appendChild(a)
a.style.display = "none"
a.click()
a.remove()
setTimeout(() => window.URL.revokeObjectURL(url), 1000)
}