10 lines
415 B
Bash
10 lines
415 B
Bash
#!/bin/bash
|
|
|
|
if [ -f /etc/ssl/cert.pem ] && [ -f /etc/ssl/key.pem ]; then
|
|
echo "SSL certificates found, starting Gunicorn with HTTPS..."
|
|
gunicorn -w 4 --bind 0.0.0.0:${APP_PORT} 'app:app' --timeout 2400 --certfile=/etc/ssl/cert.pem --keyfile=/etc/ssl/key.pem
|
|
else
|
|
echo "SSL certificates not found, starting Gunicorn with HTTP..."
|
|
gunicorn -w 4 --bind 0.0.0.0:${APP_PORT} 'app:app' --timeout 2400
|
|
fi
|