Skip to content
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.

How does it work

  1. A client requests thread foo to maud;
  2. 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;
  3. the URLs of the images are replaced by https://proxy.domain/orig.domain/path/to/file and served by the same machine as maud.

Local cache rotation

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.

Clone this wiki locally