@marcel91200 / caddy Mirror · read-only / commits / 735d6ce4
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

httpcaddyfile: Fix missing module name of storage adapter

Matthew Holt committed Sep 26, 2019 at 17:06 UTC 735d6ce405c353b5a9f65ead769d5e7319fe71ce
1 file changed +4 -1
caddyconfig/httpcaddyfile/httptype.go
+4 -1
@@ -211,7 +211,10 @@ func (st ServerType) Setup(originalServerBlocks []caddyfile.ServerBlock,
211 cfg.AppsRaw["tls"] = caddyconfig.JSON(tlsApp, &warnings)
212 }
213 if storageCvtr, ok := options["storage"].(caddy.StorageConverter); ok {
214 - cfg.StorageRaw = caddyconfig.JSON(storageCvtr, &warnings)
214 + cfg.StorageRaw = caddyconfig.JSONModuleObject(storageCvtr,
215 + "module",
216 + storageCvtr.(caddy.Module).CaddyModule().ID(),
217 + &warnings)
218 }
219
220 return cfg, warnings, nil