added tests
This commit is contained in:
parent
c33a4315fb
commit
5f0a3ac74d
6 changed files with 129 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue