0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-30 22:34:15 -05:00
This commit is contained in:
a 2024-09-17 17:08:13 -05:00
parent cf637dbaa6
commit 07a21a8d5b
No known key found for this signature in database
GPG key ID: 374BC539FE795AF0

View file

@ -15,12 +15,12 @@ import (
func init() { func init() {
caddy.RegisterModule(Filesystems{}) caddy.RegisterModule(Filesystems{})
httpcaddyfile.RegisterGlobalOption("file_systems", parseFilesystems) httpcaddyfile.RegisterGlobalOption("filesystem", parseFilesystems)
} }
type moduleEntry struct { type moduleEntry struct {
Key string `json:"name,omitempty"` Key string `json:"name,omitempty"`
FileSystemRaw json.RawMessage `json:"file_system,omitempty" caddy:"namespace=caddy.fs inline_key=backend"` FileSystemRaw json.RawMessage `json:"filesystem,omitempty" caddy:"namespace=caddy.fs inline_key=backend"`
fileSystem fs.FS fileSystem fs.FS
} }