From: Shane Jaroch Date: Wed, 21 Jan 2026 04:08:05 +0000 (-0500) Subject: wip update X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=01478c33e507550246c3d3494b34fcdfab8ef542;p=nutratech%2Fvps-root.git wip update --- diff --git a/etc/nginx/conf.d/moms-website.conf.disabled b/etc/nginx/conf.d/moms-website.conf similarity index 97% rename from etc/nginx/conf.d/moms-website.conf.disabled rename to etc/nginx/conf.d/moms-website.conf index c8b0419..e18522f 100644 --- a/etc/nginx/conf.d/moms-website.conf.disabled +++ b/etc/nginx/conf.d/moms-website.conf @@ -9,8 +9,8 @@ server { server { # HTTP/3 (QUIC) - UDP - listen 443 quic; - listen [::]:443 quic; + listen 443 quic reuseport; + listen [::]:443 quic reuseport; # HTTP/2 & 1.1 (Fallback) - TCP listen 443 ssl; diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 60c095d..49ed808 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -116,6 +116,20 @@ ENV="${1:-dev}" echo "Deploying for environment: $ENV" echo "Installing new configurations..." + +# Cleanup disabled configurations +for FILE in "$NGINX_CONF_SRC"/*.conf.disabled; do + [ -e "$FILE" ] || continue + BASENAME=$(basename "$FILE") + if [[ "$BASENAME" =~ ^(.*)\.conf\.disabled$ ]]; then + STEM="${BASH_REMATCH[1]}" + if [ -f "$DEST_CONF_DIR/$STEM.conf" ]; then + echo "Removing disabled config: $STEM.conf" + sudo rm "$DEST_CONF_DIR/$STEM.conf" + fi + fi +done + for FILE in "$NGINX_CONF_SRC"/*.conf; do BASENAME=$(basename "$FILE")