diff --git a/docs/networking/proxy-management.md b/docs/networking/proxy-management.md index d7f5fe21d..1b51633dc 100644 --- a/docs/networking/proxy-management.md +++ b/docs/networking/proxy-management.md @@ -4,6 +4,7 @@ ``` proxy:build-config [--parallel count] [--all|] # (Re)builds config for given app +proxy:clear-config [--all|] # Clears config for given app proxy:disable [--parallel count] [--all|] # Disable proxy for app proxy:enable [--parallel count] [--all|] # Enable proxy for app proxy:report [] [] # Displays a proxy report for one or more apps @@ -40,6 +41,24 @@ Finally, the number of parallel workers may be automatically set to the number o dokku proxy:build-config --all --parallel -1 ``` +### Clearing the generated proxy config + +> New as of 0.27.0 + +Generated proxy configurations can also be cleared using the `proxy:clear-config` command. + +```shell +dokku proxy:clear-config node-js-app +``` + +All apps may have their proxy config cleared by using the `--all` flag. + +```shell +dokku proxy:clear-config --all +``` + +Clearing a proxy configuration has different effects depending on the proxy plugin in use. Consul the documentation for your proxy implementation for further details. + ### Displaying proxy reports for an app > New as of 0.8.1 diff --git a/plugins/proxy/src/commands/commands.go b/plugins/proxy/src/commands/commands.go index d2622eb9b..e2f6c016a 100644 --- a/plugins/proxy/src/commands/commands.go +++ b/plugins/proxy/src/commands/commands.go @@ -18,7 +18,8 @@ Manage the proxy integration for an app Additional commands:` helpContent = ` - proxy:build-config , (Re)builds config for a given app + proxy:build-config [--parallel count] [--all|], (Re)builds config for a given app + proxy:clear-config [--all|], Clears config for a given app proxy:disable , Disable proxy for app proxy:enable , Enable proxy for app proxy:ports , List proxy port mappings for app