-
Notifications
You must be signed in to change notification settings - Fork 1
Image Proxy module
Silverweed edited this page Feb 25, 2016
·
3 revisions
The proxy
module is an opt-in plugin which enables maud to fetch the externally linked images locally and serve them from an internal domain. The purpose of this is achieving full-HTTPS and a slightly lower access time to said resources, as well as being able to know the size of each image / resize them, etc.
- A client requests thread
foo
to maud; - the http handler fetches the posts from the db and parses them (applies formatting and so on); during this phase, all
<img>
tags are examined, and the resources they're pointing to are fetched to the server, if not already there; - the URLs of the images are replaced by
https://proxy.domain/orig.domain/path/to/file
and served by the same machine as maud.
Maud doesn't handle the cache rotation by itself; to avoid excessive space filling, fetched files are better rotated with a LRU criterion by a cronjob or something alike - see marble.