0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-02-17 23:45:41 -05:00

httpcaddyfile: Fix missing module name of storage adapter

This commit is contained in:
Matthew Holt 2019-09-26 17:06:15 -07:00
parent 7b33c8db31
commit 735d6ce405
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -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