Browse Source
httpcaddyfile: Fix missing module name of storage adapter
master
Matthew Holt
6 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
4 additions and
1 deletions
-
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 |
|
|
|