elimina HTTPS: servidor corre en HTTP puro

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-23 16:12:16 -04:00
parent c6d66e66c6
commit 7651d64b5e
3 changed files with 1 additions and 59 deletions
+1 -14
View File
@@ -4,19 +4,6 @@ set -e
# Archivos de datos — crearlos si no existen para que los bind mounts funcionen
touch cantina.db .spotify_cache
# Certificado SSL autofirmado — solo se genera una vez
if [ ! -f cert.pem ] || [ ! -f key.pem ]; then
echo "Generando certificado SSL autofirmado..."
openssl req -x509 -newkey rsa:2048 \
-keyout key.pem -out cert.pem \
-days 365 -nodes \
-subj "/CN=localhost" \
-addext "subjectAltName=DNS:localhost,IP:127.0.0.1" \
2>/dev/null
fi
exec uvicorn app.main:app \
--host 0.0.0.0 \
--port 8000 \
--ssl-keyfile key.pem \
--ssl-certfile cert.pem
--port 8000