On Tue, Sep 17, 2019 at 1:42 AM Julien Cigar <[email protected]> wrote: > > On Sun, Sep 15, 2019 at 11:22:40AM -0700, Mike Orr wrote: > > On Thu, Sep 12, 2019 at 2:13 PM Mikko Ohtamaa <[email protected]> > > wrote: > > > > > > > > >For static assets and such - they should not be served from WSGI in the > > >first place and you can nicely offload this to CloudFlare or similar > > >automatically . > > > > What if they're access-restricted to certain groups of users? I have > > my public assets served by Apache (via 'ProxyPass /staic !' and 'Alias > > /static /directory') but I serve private ones with 'FilerResponse'.It > > would be nice to serve them outside WSGI but nothing else knows about > > Pyramid's authorization. > > couldn't you use XSendfile / X-Accel?
I did use X-Sendfile at one point, although not for this use case if I remember. I'm not sure how I feel about letting Apache have access to the files. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAH9f%3Duoh7LG%3DH3QbcgxHt8er-6S1ihS7S3ig3sgeAwHCn0Cwfw%40mail.gmail.com.
