From 735d6ce405c353b5a9f65ead769d5e7319fe71ce Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 26 Sep 2019 17:06:15 -0700 Subject: httpcaddyfile: Fix missing module name of storage adapter --- caddyconfig/httpcaddyfile/httptype.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/caddyconfig/httpcaddyfile/httptype.go b/caddyconfig/httpcaddyfile/httptype.go index ff340de..265cf73 100644 --- a/caddyconfig/httpcaddyfile/httptype.go +++ b/caddyconfig/httpcaddyfile/httptype.go @@ -211,7 +211,10 @@ func (st ServerType) Setup(originalServerBlocks []caddyfile.ServerBlock, cfg.AppsRaw["tls"] = caddyconfig.JSON(tlsApp, &warnings) } if storageCvtr, ok := options["storage"].(caddy.StorageConverter); ok { - cfg.StorageRaw = caddyconfig.JSON(storageCvtr, &warnings) + cfg.StorageRaw = caddyconfig.JSONModuleObject(storageCvtr, + "module", + storageCvtr.(caddy.Module).CaddyModule().ID(), + &warnings) } return cfg, warnings, nil -- cgit v1.2.3