From a6b1bebf77e410b3c52ae82133d68fca6e77ce73 Mon Sep 17 00:00:00 2001 From: AD-Wright <> Date: Wed, 12 Oct 2022 20:29:41 -0400 Subject: [PATCH] Added alternative installation method --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 690d871..015d378 100644 --- a/README.md +++ b/README.md @@ -107,3 +107,9 @@ Then build Caddy with this Go module plugged in. For example: $ xcaddy build --with github.com/caddyserver/transform-encoder ``` +Alternatively, Caddy 2.4.4 and up supports adding a module directly: +```shell +$ caddy add-package github.com/caddyserver/transform-encoder +``` + +Note that in all cases Caddy should be stopped and started to get the module loaded, and future updates should be conducted through either xcaddy (if built with xcaddy) or `caddy upgrade` (if added with `add-package`).