diff --git a/backend/Dockerfile b/backend/Dockerfile index e83ae84..4fc510d 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -3,4 +3,4 @@ WORKDIR /code COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY ./app /code/app -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] \ No newline at end of file +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--root-path", "/api", "--reload"] \ No newline at end of file diff --git a/backend/app/db/schemas.py b/backend/app/db/schemas.py index eddef43..3b049ab 100644 --- a/backend/app/db/schemas.py +++ b/backend/app/db/schemas.py @@ -3,7 +3,6 @@ from pydantic import BaseModel class UserBase(BaseModel): - username: str email: str diff --git a/nginx/dev.conf b/nginx/dev.conf index 98acf18..5e1ba1e 100644 --- a/nginx/dev.conf +++ b/nginx/dev.conf @@ -28,7 +28,7 @@ server { proxy_hide_header 'Access-Control-Allow-Methods'; add_header 'Access-Control-Allow-Methods' '*' always; - proxy_pass http://backend:8000/api/; + proxy_pass http://backend:8000/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;