commit inicial

This commit is contained in:
2026-04-23 00:39:58 -04:00
commit a1b9c0139d
32 changed files with 2836 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
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