Brotli via cloudflared

It is impossible to use brotli from origin since cloudflared make HTTP 1.1 requests to local services via unsecure connections. It changes Accept-Encoding to gzip only.
7 Replies
Cyb3r-Jak3
Cyb3r-Jak35mo ago
Cloudflared can make HTTP/2 connections over HTTPS if the tunnel is configured that way. Though haven't tried that to see if Brotli works
starina_cool
starina_coolOP5mo ago
Yes. It is true. But using encryption for localhost requests is an overkill as I see. it.
Cyb3r-Jak3
Cyb3r-Jak35mo ago
True but brotli is only supported over HTTPS See https://groups.google.com/g/brotli/c/fN6M9A8aRnM/m/WDzmSYhDAQAJ
starina_cool
starina_coolOP5mo ago
Yes, I know. Maybe it i a good idea to implement brotli inside cloudflared.
Cyb3r-Jak3
Cyb3r-Jak35mo ago
What do you mean inside cloudflared? Why would cloudflared go against the spec of brotli?
starina_cool
starina_coolOP5mo ago
I mean after receiving data from local service compress it with brotli befor sending back to CF DC and the to the client.
Cyb3r-Jak3
Cyb3r-Jak35mo ago
GitHub
Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
From An unknown user
From An unknown user
From An unknown user
Want results from more Discord servers?
Add your server