aboutsummaryrefslogtreecommitdiff
path: root/docs/configuration
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-05-18 09:22:26 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-05-19 06:05:09 +0300
commit5f0a3ac74d51333a778e6be26876fe26b0ff625b (patch)
tree1636e8eb0a35413c977e0d9d65aac5f88e721a9d /docs/configuration
parentc33a4315fb09e67d0ed5f644877054a3fb7b1fe1 (diff)
downloadpleroma-5f0a3ac74d51333a778e6be26876fe26b0ff625b.tar.gz
added tests
Diffstat (limited to 'docs/configuration')
-rw-r--r--docs/configuration/cheatsheet.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/configuration/cheatsheet.md b/docs/configuration/cheatsheet.md
index aaea3f46c..ddea6a4fb 100644
--- a/docs/configuration/cheatsheet.md
+++ b/docs/configuration/cheatsheet.md
@@ -262,6 +262,12 @@ Urls of attachments pass to script as arguments.
* `script_path`: path to external script.
+Example:
+```elixir
+config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Script,
+ script_path: "./installation/nginx-cache-purge.example"
+```
+
#### Pleroma.Web.MediaProxy.Invalidation.Http
This strategy allow perform custom http request to purge cache.
@@ -270,6 +276,14 @@ This strategy allow perform custom http request to purge cache.
* `headers`: http headers. default is empty
* `options`: request options. default is empty
+Example:
+```elixir
+config :pleroma, Pleroma.Web.MediaProxy.Invalidation.Http,
+ method: :purge,
+ headers: [],
+ options: []
+```
+
## Link previews
### Pleroma.Web.Metadata (provider)