From 6011ce120a4b2df9314a800fc93a61f852b766c1 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 4 Nov 2019 12:13:21 -0700 Subject: cmd: Move module imports into standard packages This makes it easier to make "standard" caddy builds, since you'll only need to add a single import to get all of Caddy's standard modules. There is a package for all of Caddy's standard modules (modules/standard) and a package for the HTTP app's standard modules only (modules/caddyhttp/standard). We still need to decide which of these, if not all of them, should be kept in the standard build. Those which aren't should be moved out of this repo. See #2780. --- modules/standard/import.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/standard/import.go (limited to 'modules/standard') diff --git a/modules/standard/import.go b/modules/standard/import.go new file mode 100644 index 0000000..5ecfb4a --- /dev/null +++ b/modules/standard/import.go @@ -0,0 +1,14 @@ +package standard + +import ( + // standard Caddy modules + _ "github.com/caddyserver/caddy/v2/caddyconfig/caddyfile" + _ "github.com/caddyserver/caddy/v2/caddyconfig/json5" + _ "github.com/caddyserver/caddy/v2/caddyconfig/jsonc" + _ "github.com/caddyserver/caddy/v2/modules/caddyhttp/standard" + _ "github.com/caddyserver/caddy/v2/modules/caddytls" + _ "github.com/caddyserver/caddy/v2/modules/caddytls/distributedstek" + _ "github.com/caddyserver/caddy/v2/modules/caddytls/standardstek" + _ "github.com/caddyserver/caddy/v2/modules/filestorage" + _ "github.com/caddyserver/caddy/v2/modules/logging" +) -- cgit v1.2.3