aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2019-02-09 11:39:01 +0000
committerlambda <pleromagit@rogerbraun.net>2019-02-09 11:39:01 +0000
commit99fd199bda8bd90cd3e8c69d54087531ddc02eac (patch)
treec16578b70c92bbb877350c0aeff871e970fd330f
parent1eecbc1cd1a7f632e536f943fab6612e1e108d59 (diff)
parente868cfe619a7e01775cc8f71a0b9e7d54c301ca3 (diff)
downloadpleroma-99fd199bda8bd90cd3e8c69d54087531ddc02eac.tar.gz
Merge branch 'add-media-path-to-caddy-cache' into 'develop'
Add /media to Caddy cache See merge request pleroma/pleroma!791
-rw-r--r--installation/caddyfile-pleroma.example5
1 files changed, 5 insertions, 0 deletions
diff --git a/installation/caddyfile-pleroma.example b/installation/caddyfile-pleroma.example
index 03ff000b6..fcf76718e 100644
--- a/installation/caddyfile-pleroma.example
+++ b/installation/caddyfile-pleroma.example
@@ -24,6 +24,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
}