mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-06-01 00:18:07 +00:00
Ensure all MediaProxy settings are grouped together
This commit is contained in:
parent
6524f74114
commit
89f84f406c
|
@ -1657,6 +1657,43 @@ config :pleroma, :config_description, [
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
%{
|
||||||
|
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,
|
||||||
|
@ -1729,45 +1766,6 @@ config :pleroma, :config_description, [
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
%{
|
|
||||||
group: :pleroma,
|
|
||||||
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."
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
%{
|
|
||||||
group: :pleroma,
|
|
||||||
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."
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
%{
|
%{
|
||||||
group: :pleroma,
|
group: :pleroma,
|
||||||
key: :gopher,
|
key: :gopher,
|
||||||
|
|
Loading…
Reference in a new issue