diff options
author | Matt Holt <mholt@users.noreply.github.com> | 2022-08-01 13:36:22 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 13:36:22 -0600 |
commit | f783290f40febd3eef2a299911ad95bab4d2b414 (patch) | |
tree | 1baed0987f2ad5ed723dbda671f0eec13a414ca7 /modules/caddyhttp/fileserver | |
parent | ebd6abcbd5f6b31b7b4cadca0a546d9f0eab9ad3 (diff) |
caddyhttp: Implement `caddy respond` command (#4870)
Diffstat (limited to 'modules/caddyhttp/fileserver')
-rw-r--r-- | modules/caddyhttp/fileserver/command.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/command.go b/modules/caddyhttp/fileserver/command.go index 7b4ab11..902c5f8 100644 --- a/modules/caddyhttp/fileserver/command.go +++ b/modules/caddyhttp/fileserver/command.go @@ -117,8 +117,14 @@ func cmdFileServer(fs caddycmd.Flags) (int, error) { Servers: map[string]*caddyhttp.Server{"static": server}, } + var false bool cfg := &caddy.Config{ - Admin: &caddy.AdminConfig{Disabled: true}, + Admin: &caddy.AdminConfig{ + Disabled: true, + Config: &caddy.ConfigSettings{ + Persist: &false, + }, + }, AppsRaw: caddy.ModuleMap{ "http": caddyconfig.JSON(httpApp, nil), }, |