collabrix/deploy-nginx.sh
DGSoft 93b98cfb5c Initial commit: Team Chat System with Code Snippet Library
- Complete chat application similar to Microsoft Teams
- Code snippet library with syntax highlighting
- Real-time messaging with WebSockets
- File upload with Office integration
- Department-based permissions
- Dark/Light theme support
- Production deployment with SSL/Reverse Proxy
- Docker containerization
- PostgreSQL database with SQLModel ORM
2025-12-09 22:25:03 +01:00

37 lines
1.1 KiB
Bash

#!/bin/bash
# Nginx Deployment Script für SSL/Reverse Proxy
echo "🔧 Deploying Nginx configuration..."
# 1. Copy configuration to sites-available
sudo cp nginx-collabrix.conf /etc/nginx/sites-available/collabrix.conf
# 2. Create symlink in sites-enabled
sudo ln -sf /etc/nginx/sites-available/collabrix.conf /etc/nginx/sites-enabled/
# 3. Test Nginx configuration
echo "📋 Testing Nginx configuration..."
sudo nginx -t
if [ $? -eq 0 ]; then
echo "✅ Nginx configuration is valid"
# 4. Reload Nginx
echo "🔄 Reloading Nginx..."
sudo systemctl reload nginx
echo "✅ Nginx successfully reloaded"
echo ""
echo "🌐 Your application is now available at:"
echo " https://collabrix.apex-project.de"
echo ""
echo "📝 Next steps:"
echo " 1. Restart backend: cd backend && uvicorn app.main:app --host 0.0.0.0 --port 8000"
echo " 2. Restart frontend: cd frontend && npm run dev"
echo " 3. Test HTTPS access in browser"
else
echo "❌ Nginx configuration test failed"
echo "Please check the error messages above"
exit 1
fi