#!/bin/bash # Setup script for HTTPS Configuration Management echo "Setting up HTTPS Configuration Management..." echo "" # Step 1: Run migration echo "📦 Creating https_config database table..." python /app/migrations/add_https_config_table.py if [ $? -eq 0 ]; then echo "✅ Database migration completed successfully!" else echo "❌ Database migration failed!" exit 1 fi echo "" echo "✅ HTTPS Configuration Management is now ready!" echo "" echo "Next steps:" echo "1. Start the application: docker-compose up -d" echo "2. Log in to the admin panel" echo "3. Navigate to: Admin Panel → 🔒 HTTPS Configuration" echo "4. Configure your HTTPS settings:" echo " - Enable HTTPS" echo " - Set hostname: digiserver" echo " - Set domain: digiserver.sibiusb.harting.intra" echo " - Set IP: 10.76.152.164" echo "5. Save the configuration" echo "" echo "📖 For detailed information, see HTTPS_CONFIGURATION.md"