coates’s avatarcoates’s Twitter Archive—№ 23,552

      1. Do I know anyone using AWS App Runner with the stock Python3 container? I’m having a problem with redirects and… it really looks like an App Runner bug from what I can see. Could use a second opinion.
    1. …in reply to @coates
      Oh wow; I think this is it: github.com/aws/apprunner-roadmap/issues/37 …how did this ship? (honestly…)
  1. …in reply to @coates
    I guess the conclusion, given this and also App Runner’s clunky custom domain situation (I’ve mentioned this before) is to put a custom CloudFront distro between all users and App Runner apps… (The really 🤯 part is that App Runner handles this stuff for you… but only almost.)
    1. …in reply to @coates
      After setting up CloudFront to proxy App Runner, and remembering that CF doesn't actually do X-Forwarded-Host properly (hostname unavailable), it makes me wonder: who actually uses this? grmpyprogrammer: this is the kind of scenario I was talking about. matthieunapoli/1288414890122776576
      1. …in reply to @coates
        Finally got Flask redirects to “work” on App Runner. I should blog this. Short version: - ignore AR’s linked domains - set up CloudFront with AR as Origin - manually tell CF to add X-Forwarded-Host - use werkzeug.middleware.proxy_fix.ProxyFix to renegotiate the WSGI request 😴