wip update
authorShane Jaroch <chown_tee@proton.me>
Wed, 21 Jan 2026 04:08:05 +0000 (23:08 -0500)
committerShane Jaroch <chown_tee@proton.me>
Wed, 21 Jan 2026 04:08:05 +0000 (23:08 -0500)
etc/nginx/conf.d/moms-website.conf [moved from etc/nginx/conf.d/moms-website.conf.disabled with 97% similarity]
scripts/deploy.sh

similarity index 97%
rename from etc/nginx/conf.d/moms-website.conf.disabled
rename to etc/nginx/conf.d/moms-website.conf
index c8b0419c4b26ead246f5011bcbf07baf90408645..e18522f6f85dd94dd882686cf0059c4e22c9e16f 100644 (file)
@@ -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;
index 60c095da3161561048002110541d2a613803c1cd..49ed8080222c58b75dc3685e3fca87d064c4af47 100755 (executable)
@@ -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")