INNER CODE UNIT · Shell

isIP

cipi-sh/cipi · setup.sh:520

        var isIP = /^(\d{1,3}\.){3}\d{1,3}$/.test(h) || /^[0-9a-fA-F:]+$/.test(h);
        document.getElementById('host-label').textContent = isIP ? h : h + ' is not configured';
    </script>
</body>
</html>
EOF

    ln -sf /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
    rm -f /etc/nginx/sites-enabled/default.bak

    # Catch-all for HTTPS. The "default" site above claims :80, but :443 had no
    # default server: an HTTPS request carrying a Host that matches no app fell
    # through to whichever vhost nginx loaded first. With a wildcard
    # multi-tenant app that means its tenant resolver receives a hostname it
    # cannot parse. Close those connections instead (cipi nginx default-server).
    cat > /etc/nginx/sites-available/000-cipi-default <<'EOF'
# Managed by Cipi — catch-all for requests matching no app.
# Disable with: cipi nginx default-server off

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…