projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eecbc1
)
Add /media to Caddy cache
author
shibayashi
<shibayashi@cypherpunk.observer>
Sat, 9 Feb 2019 11:39:01 +0000
(11:39 +0000)
committer
lambda
<pleromagit@rogerbraun.net>
Sat, 9 Feb 2019 11:39:01 +0000
(11:39 +0000)
installation/caddyfile-pleroma.example
patch
|
blob
|
history
diff --git
a/installation/caddyfile-pleroma.example
b/installation/caddyfile-pleroma.example
index 03ff000b6c00b6ec6344f108d9b4ccdf3fbaade9..fcf76718e74ebd1f47f34e9461de26fc5c226779 100644
(file)
--- a/
installation/caddyfile-pleroma.example
+++ b/
installation/caddyfile-pleroma.example
@@
-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