2.8 KiB
2.8 KiB
Production Deployment Guide for intelsight.de
Pre-Deployment Checklist
1. Generate Secure Secrets
python3 generate-secrets.py
Save the output securely - you'll need these passwords!
Note: The admin panel users (rac00n and w@rh@mm3r) keep their existing passwords as configured in the .env file.
2. Configure Environment Files
v2/.env
- Copy the template:
cp v2/.env.production.template v2/.env - Replace all
CHANGE_THIS_placeholders with generated secrets - Ensure
PRODUCTION=trueis set
v2_lizenzserver/.env
- Copy the template:
cp v2_lizenzserver/.env.production.template v2_lizenzserver/.env - Use the same database password as in v2/.env
- Set a unique SECRET_KEY from generate-secrets.py
3. SSL Certificates
# Copy your SSL certificates
cp /SSL/fullchain.pem v2_nginx/ssl/
cp /SSL/privkey.pem v2_nginx/ssl/
chmod 644 v2_nginx/ssl/fullchain.pem
chmod 600 v2_nginx/ssl/privkey.pem
# Generate dhparam.pem (this takes a few minutes)
openssl dhparam -out v2_nginx/ssl/dhparam.pem 2048
4. Verify Configuration
./verify-deployment.sh
Deployment on Hetzner Server
1. Update Deploy Script
On your Hetzner server:
nano /root/deploy.sh
Replace YOUR_GITHUB_TOKEN with your actual GitHub token.
2. Run Deployment
cd /root
./deploy.sh
3. Start Services
cd /opt/v2-Docker/v2
docker compose up -d
4. Check Status
docker compose ps
docker compose logs -f
Post-Deployment
1. Create Admin Panel API Key
- Access https://admin-panel-undso.intelsight.de
- Login with your admin credentials
- Go to "Lizenzserver Administration"
- Generate a new API key for production use
2. Test Endpoints
- Admin Panel: https://admin-panel-undso.intelsight.de
- API Server: https://api-software-undso.intelsight.de
3. Monitor Logs
docker compose logs -f admin-panel
docker compose logs -f license-server
Security Notes
- Never commit .env files with real passwords to git
- Backup your passwords securely
- Rotate API keys regularly
- Monitor access logs for suspicious activity
- Keep SSL certificates up to date (expires every 90 days)
Troubleshooting
Services won't start
docker compose down
docker compose up -d
docker compose logs
Database connection issues
- Verify POSTGRES_PASSWORD matches in both .env files
- Check if postgres container is running:
docker compose ps db
SSL issues
- Ensure certificates are in v2_nginx/ssl/
- Check nginx logs:
docker compose logs nginx-proxy
Cannot access website
- Verify DNS points to your server IP
- Check if ports 80/443 are open:
ss -tlnp | grep -E '(:80|:443)' - Check nginx is running:
docker compose ps nginx-proxy