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/reverseproxy | |
parent | ebd6abcbd5f6b31b7b4cadca0a546d9f0eab9ad3 (diff) |
caddyhttp: Implement `caddy respond` command (#4870)
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
-rw-r--r-- | modules/caddyhttp/reverseproxy/command.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/command.go b/modules/caddyhttp/reverseproxy/command.go index 6153b6e..fed1cd9 100644 --- a/modules/caddyhttp/reverseproxy/command.go +++ b/modules/caddyhttp/reverseproxy/command.go @@ -172,8 +172,13 @@ func cmdReverseProxy(fs caddycmd.Flags) (int, error) { appsRaw["tls"] = caddyconfig.JSON(tlsApp, nil) } + var false bool cfg := &caddy.Config{ - Admin: &caddy.AdminConfig{Disabled: true}, + Admin: &caddy.AdminConfig{Disabled: true, + Config: &caddy.ConfigSettings{ + Persist: &false, + }, + }, AppsRaw: appsRaw, } |