Add Invalidation Script url_format setting
authorMark Felder <feld@feld.me>
Thu, 21 Jan 2021 20:52:02 +0000 (14:52 -0600)
committerMark Felder <feld@feld.me>
Thu, 21 Jan 2021 20:52:02 +0000 (14:52 -0600)
config/description.exs

index 715a0d0c36e731c6732acdc72607c19fcb44a80d..d7dc264ee2a8179d0553c4591f23c35e28ac3675 100644 (file)
@@ -1627,13 +1627,20 @@ config :pleroma, :config_description, [
     group: :pleroma,
     key: Pleroma.Web.MediaProxy.Invalidation.Script,
     type: :group,
-    description: "Script invalidate settings",
+    description: "Invalidation script settings",
     children: [
       %{
         key: :script_path,
         type: :string,
-        description: "Path to shell script. Which will run purge cache.",
+        description: "Path to executable script which will purge cached items.",
         suggestions: ["./installation/nginx-cache-purge.sh.example"]
+      },
+      %{
+        key: :url_format,
+        type: :string,
+        description:
+          "Optional URL format preprocessing. Only required for Apache's htcacheclean.",
+        suggestions: [":htcacheclean"]
       }
     ]
   },