Compare commits

...

3 Commits

Author SHA1 Message Date
Mark Felder
89f84f406c Ensure all MediaProxy settings are grouped together 2020-05-21 16:36:13 -05:00
Mark Felder
6524f74114 Hint where to find the example script 2020-05-21 16:26:16 -05:00
Mark Felder
3771db97b4 Add MediaProxy invalidation settings to description.exs 2020-05-21 16:23:57 -05:00

View File

@ -1633,6 +1633,68 @@ config :pleroma, :config_description, [
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,
type: :keyword,
description: "Options for Pleroma.ReverseProxy",