diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-09-26 17:06:15 -0700 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-09-26 17:06:15 -0700 |
commit | 735d6ce405c353b5a9f65ead769d5e7319fe71ce (patch) | |
tree | 3ee99f1d0ab7130f6b817401a7bbe96fc7da3dcc | |
parent | 7b33c8db3161d3558147d02f8d7818352e6983b7 (diff) |
httpcaddyfile: Fix missing module name of storage adapter
-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 |