mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 02:28:08 -05:00
* fix(cloudfront): serve a Lambda Web Function endpoint origin from Floci itself A custom origin whose domain is an endpoint this Floci minted now goes to the listener the viewer reached, with the endpoint domain as Host. Before, the endpoint host did not resolve, and loopback failed the private address check. As on AWS, a forwarded viewer Host is a 502, because the endpoint's certificate does not name it. * fix(cloudfront): fetch the endpoint origin over plain HTTP for TLS viewers A viewer over TLS reached the HTTPS port, and Floci sent plain HTTP to it. The request now goes to the plain HTTP port at the same address. The endpoint domains are also indexed by the host a CloudFront origin names, so a base URL host with upper case or a trailing dot still matches.