Compare commits
3 Commits
feature/sa
...
chore/expo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89f84f406c | ||
|
|
6524f74114 | ||
|
|
3771db97b4 |
@ -1633,6 +1633,68 @@ config :pleroma, :config_description, [
|
|||||||
suggestions: ["https://example.com"]
|
suggestions: ["https://example.com"]
|
||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
|
key: :invalidation,
|
||||||
|
type: :keyword,
|
||||||
|
description: "Cache invalidation for MediaProxy",
|
||||||
|
suggestions: [
|
||||||
|
enabled: false,
|
||||||
|
provider: Pleroma.Web.MediaProxy.Invalidation.Script
|
||||||
|
],
|
||||||
|
children: [
|
||||||
|
%{
|
||||||
|
key: :enabled,
|
||||||
|
type: :boolean,
|
||||||
|
description: "Enable cache invalidation when object is deleted."
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: :provider,
|
||||||
|
type: {:dropdown, :atom},
|
||||||
|
suggestions: [
|
||||||
|
"Pleroma.Web.MediaProxy.Invalidation.Http",
|
||||||
|
"Pleroma.Web.MediaProxy.Invalidation.Script"
|
||||||
|
],
|
||||||
|
description: "Invalidate cached objects via HTTP or a custom script."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: Pleroma.Web.MediaProxy.Invalidation.Http,
|
||||||
|
type: :group,
|
||||||
|
description: "MediaProxy Cache Invalidation Http Settings",
|
||||||
|
children: [
|
||||||
|
%{
|
||||||
|
key: :method,
|
||||||
|
type: :string,
|
||||||
|
description: "HTTP method for invalidation requests.",
|
||||||
|
suggestions: ["purge"]
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: :headers,
|
||||||
|
type: :string,
|
||||||
|
description: "Additional HTTP headers for invalidation requests."
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: :options,
|
||||||
|
type: :string,
|
||||||
|
description: "Additional HTTP request options for invalidation requests."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
key: Pleroma.Web.MediaProxy.Invalidation.Script,
|
||||||
|
type: :group,
|
||||||
|
description: "MediaProxy Cache Invalidation Script Settings",
|
||||||
|
children: [
|
||||||
|
%{
|
||||||
|
key: :script_path,
|
||||||
|
type: :string,
|
||||||
|
description:
|
||||||
|
"Path to a custom script to automate cache invalidation." <>
|
||||||
|
"See `installation/nginx-cache-purge.sh.example` for additional help."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
%{
|
||||||
key: :proxy_opts,
|
key: :proxy_opts,
|
||||||
type: :keyword,
|
type: :keyword,
|
||||||
description: "Options for Pleroma.ReverseProxy",
|
description: "Options for Pleroma.ReverseProxy",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user