bookwyrm-social / bookwyrm

Social reading and reviewing, decentralized with ActivityPub
http://joinbookwyrm.com/
Other
2.17k stars 255 forks source link

Make nginx config safer #3338

Closed Minnozz closed 3 months ago

Minnozz commented 3 months ago

Instead of allowing all image files anywhere, and disallowing non-image file under /images/, only allow image files under /images/ and don't match non-image files elsewhere. They get proxied to web instead and result in a 404 there.

For example, the old config allowed /exports/foo.jpg to be served, while the new config does not.