diff options
Diffstat (limited to 'caddyconfig/httpcaddyfile')
-rw-r--r-- | caddyconfig/httpcaddyfile/httptype.go | 5 |
1 files changed, 4 insertions, 1 deletions
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 |