9 lines
396 B
Bash
9 lines
396 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 app.wsgi:application --bind 0.0.0.0:${APP_PORT} --certfile=/etc/ssl/cert.pem --keyfile=/etc/ssl/key.pem
|
|
else
|
|
echo "SSL certificates not found, starting Gunicorn with HTTP..."
|
|
gunicorn app.wsgi:application --bind 0.0.0.0:${APP_PORT}
|
|
fi |