diff --git a/project/settings.py b/project/settings.py index a919b91..ff428f7 100644 --- a/project/settings.py +++ b/project/settings.py @@ -25,7 +25,9 @@ SECRET_KEY = 'django-insecure-r=1wxol#v6tkxk_(rr1@4)!0x&0^!*r-ulesdw^miid*b$btx2 # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = [ + 'transporte-paradero.hz.kursor.cl' +] # Application definition @@ -120,7 +122,7 @@ USE_TZ = True CORS_ALLOWED_ORIGINS = [ "http://localhost:3001", - "https://transporte-paradero.hz.kursor", + "https://transporte-paradero.hz.kursor.cl", # Agrega otros dominios permitidos aquĆ­ si es necesario ] diff --git a/readme.md b/readme.md index f97fefa..0a82230 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ ~~~yml version: '3' -name: 'paradero' +name: paradero services: @@ -11,7 +11,9 @@ services: image: python:3.11-alpine environment: - PORT=4001 - - DBNAME=/proyecto/db.sqlite3 + - TRANSPORTE_API=https://transporte.hz.kursor.cl/api + - TRANSPORTE_USER=usuario1 + - TRANSPORTE_PASS=usuario1 ports: - 4001:4001 working_dir: /proyecto @@ -40,15 +42,15 @@ services: - ./frontend:/app environment: - PORT=3001 - - VITE_BACKEND=http://localhost:4001/rutaParadero + - VITE_BACKEND=/api ports: - 3001:3001 working_dir: /app command: sh -c " - [ -d node_modules ] || (npm install) ; + [ -d node_modules ] || (npm install --legacy-peer-deps) ; npm run dev " volumes: venv: -~~~ \ No newline at end of file +~~~