diff options
author | lain <lain@soykaf.club> | 2020-06-23 10:17:12 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-23 10:17:12 +0200 |
commit | 2c603f20098d7f342e1cbad8e6a6c86b007c5a99 (patch) | |
tree | dd9a339daed6a25e758167413d9231e22ce42ac4 /config/description.exs | |
parent | b05f795326b77edd881ffea2c004d7ca0ddd7df9 (diff) | |
parent | 3875a507d4b52df7edbda376d3ed31ad52241ac5 (diff) | |
download | pleroma-2c603f20098d7f342e1cbad8e6a6c86b007c5a99.tar.gz pleroma-2c603f20098d7f342e1cbad8e6a6c86b007c5a99.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into update-validator
Diffstat (limited to 'config/description.exs')
-rw-r--r-- | config/description.exs | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/config/description.exs b/config/description.exs index b21d7840c..f9523936a 100644 --- a/config/description.exs +++ b/config/description.exs @@ -1651,6 +1651,31 @@ config :pleroma, :config_description, [ suggestions: ["https://example.com"] }, %{ + key: :invalidation, + type: :keyword, + descpiption: "", + suggestions: [ + enabled: true, + provider: Pleroma.Web.MediaProxy.Invalidation.Script + ], + children: [ + %{ + key: :enabled, + type: :boolean, + description: "Enables invalidate media cache" + }, + %{ + key: :provider, + type: :module, + description: "Module which will be used to cache purge.", + suggestions: [ + Pleroma.Web.MediaProxy.Invalidation.Script, + Pleroma.Web.MediaProxy.Invalidation.Http + ] + } + ] + }, + %{ key: :proxy_opts, type: :keyword, description: "Options for Pleroma.ReverseProxy", @@ -1724,6 +1749,45 @@ config :pleroma, :config_description, [ }, %{ group: :pleroma, + key: Pleroma.Web.MediaProxy.Invalidation.Http, + type: :group, + description: "HTTP invalidate settings", + children: [ + %{ + key: :method, + type: :atom, + description: "HTTP method of request. Default: :purge" + }, + %{ + key: :headers, + type: {:list, :tuple}, + description: "HTTP headers of request.", + suggestions: [{"x-refresh", 1}] + }, + %{ + key: :options, + type: :keyword, + description: "Request options.", + suggestions: [params: %{ts: "xxx"}] + } + ] + }, + %{ + group: :pleroma, + key: Pleroma.Web.MediaProxy.Invalidation.Script, + type: :group, + description: "Script invalidate settings", + children: [ + %{ + key: :script_path, + type: :string, + description: "Path to shell script. Which will run purge cache.", + suggestions: ["./installation/nginx-cache-purge.sh.example"] + } + ] + }, + %{ + group: :pleroma, key: :gopher, type: :group, description: "Gopher settings", |