From fc7ddf34ba151101b70a91d682fa0aff38dadbf3 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 24 Apr 2026 03:57:22 -0400 Subject: [PATCH] fix(nginx): make post-create executable and guard empty port maps The post-create trigger was not executable so plugn skipped it. Also skip generating the 502 config when PROXY_PORT_MAP is empty (e.g. after ports:clear) to avoid a sigil template index error. --- plugins/nginx-vhosts/functions | 2 +- plugins/nginx-vhosts/post-create | 0 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 plugins/nginx-vhosts/post-create diff --git a/plugins/nginx-vhosts/functions b/plugins/nginx-vhosts/functions index 8ff9386f6..152bec39f 100755 --- a/plugins/nginx-vhosts/functions +++ b/plugins/nginx-vhosts/functions @@ -323,7 +323,7 @@ nginx_build_config() { IS_DEPLOYED_WITH_LISTENERS=true fi - if [[ "$IS_DEPLOYED_WITH_LISTENERS" == "true" ]] || { [[ -z "$DOKKU_APP_LISTENERS" ]] && [[ -z "$PASSED_LISTEN_IP_PORT" ]]; }; then + if [[ "$IS_DEPLOYED_WITH_LISTENERS" == "true" ]] || { [[ -z "$DOKKU_APP_LISTENERS" ]] && [[ -z "$PASSED_LISTEN_IP_PORT" ]] && [[ -n "$PROXY_PORT_MAP" ]]; }; then if [[ "$IS_DEPLOYED_WITH_LISTENERS" == "true" ]]; then if [[ "$(plugn trigger network-get-static-listeners "$APP" "web")" == "" ]]; then local IMAGE_TAG=$(get_running_image_tag "$APP") diff --git a/plugins/nginx-vhosts/post-create b/plugins/nginx-vhosts/post-create old mode 100644 new mode 100755