mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:36:27 +03:00
httpcaddyfile: Fix missing module name of storage adapter
This commit is contained in:
parent
7b33c8db31
commit
735d6ce405
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue