Add /media to Caddy cache
authorshibayashi <shibayashi@cypherpunk.observer>
Sat, 9 Feb 2019 11:39:01 +0000 (11:39 +0000)
committerlambda <pleromagit@rogerbraun.net>
Sat, 9 Feb 2019 11:39:01 +0000 (11:39 +0000)
installation/caddyfile-pleroma.example

index 03ff000b6c00b6ec6344f108d9b4ccdf3fbaade9..fcf76718e74ebd1f47f34e9461de26fc5c226779 100644 (file)
@@ -23,6 +23,11 @@ example.tld  {
 
   # If you do not want to use the mediaproxy function, remove these lines.
   # To use this directive, you need the http.cache plugin for Caddy.
+  cache {
+    match_path /media
+    default_max_age 720m
+  }
+
   cache {
     match_path /proxy
     default_max_age 720m