- Enhanced Caddyfile with consolidated HTTPS block supporting all access points - Added support for https://digiserver, https://10.76.152.164, and https://digiserver.sibiusb.harting.intra - Configured Caddy reverse proxy with HTTP/3 (QUIC), TLS 1.3+, and HTTP/2 support - Implemented security headers (X-Frame-Options, X-Content-Type-Options, X-XSS-Protection) - Added HTTP to HTTPS automatic redirects for all endpoints - Enhanced setup_https.sh with improved error handling and progress reporting - Created deploy.sh for fully automated one-command deployment - Added comprehensive deployment documentation (5 guides) - Configured 2GB file upload limit and 300s request/response timeouts - Added Caddy admin API on port 2019 for configuration management - Implemented health checks and container dependency management - All volumes persistent and properly isolated - Production-ready configuration with environment variable parameterization
26 lines
663 B
Plaintext
26 lines
663 B
Plaintext
# 1. Add virtual IP
|
|
sudo ip addr add 10.76.152.164/24 dev wlp0s20f3
|
|
|
|
# 2. Wait a moment for the interface to be ready
|
|
sleep 2
|
|
|
|
# 3. Test HTTP (should redirect to HTTPS)
|
|
echo "Testing HTTP:"
|
|
curl -i http://10.76.152.164
|
|
|
|
# 4. Test HTTPS
|
|
echo "Testing HTTPS:"
|
|
curl -k https://10.76.152.164 | head -20
|
|
|
|
# 5. When done, remove the alias
|
|
sudo ip addr del 10.76.152.164/24 dev wlp0s20f3
|
|
|
|
|
|
|
|
echo "📋 Step 1: Add virtual IP alias 10.76.152.164 to wlp0s20f3" && \
|
|
sudo ip addr add 10.76.152.164/24 dev wlp0s20f3 && \
|
|
echo "✅ Virtual IP added" && \
|
|
sleep 2 && \
|
|
echo "" && \
|
|
echo "📋 Step 2: Verify the virtual IP is active" && \
|
|
ip addr show wlp0s20f3 | grep "inet " |