diff --git a/plugins/nginx-vhosts/post-certs-remove b/plugins/nginx-vhosts/post-certs-remove index fded1290a..ff6518d33 100755 --- a/plugins/nginx-vhosts/post-certs-remove +++ b/plugins/nginx-vhosts/post-certs-remove @@ -9,7 +9,10 @@ nginx_post_certs_remove() { local trigger="nginx_post_certs_remove" local APP="$1" if [[ "$(get_app_proxy_type "$APP")" == "nginx" ]]; then - config_unset --no-restart "$APP" DOKKU_NGINX_PORT DOKKU_NGINX_SSL_PORT DOKKU_PROXY_PORT_MAP + config_unset --no-restart "$APP" DOKKU_NGINX_SSL_PORT + + # shellcheck disable=SC2046 + remove_proxy_ports "$APP" $(filter_app_proxy_ports "$APP" "https" "443") fi }