Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mousetree
· 3y ago · 0 comments
Could be as simple and cost-efficient as a Cloudflare worker that adds your key and passes the query along
Comments
[–]
lucakiebel
3y ago
Or a 5€/mo Hetzner server running Nginx, though Cloudflares free offering is very generous
[–]
shri_krishna
3y ago
You have to use Cloudflare Workers in Unbounded mode to do this (especially if you are streaming using EventSource or WebSockets). Bundled mode won't cut it as it closes connection after 50ms of Javascript execution.
[–]
orf
3y ago
That’s 50ms of
CPU execution
, which does not include waiting for IO.
[–]
jeffy90
3y ago
You'd need some kind of authentication as well.
[–]
pxx
3y ago
Errrr, I assume your app can pass said authentication? If so, then it's meaningless; that's again a secret not under your control.