fix(networking): update MINIO_ENDPOINT to use public URL and allow trailing slashes in FastAPI

This commit is contained in:
2026-04-02 20:46:19 +02:00
parent f1a85da721
commit 02a682b401
2 changed files with 6 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ from app.db.session import lifespan
settings = get_settings()
app = FastAPI(title=settings.project_name, lifespan=lifespan, redirect_slashes=False)
app = FastAPI(title=settings.project_name, lifespan=lifespan)
app.add_middleware(
CORSMiddleware,

View File

@@ -32,7 +32,7 @@ services:
environment:
- BACKEND_PORT=8080
- DATABASE_URL=postgresql+asyncpg://postgres:postgres@cvfs-postgres:5432/resume_branches
- MINIO_ENDPOINT=http://cvfs-minio:9000
- MINIO_ENDPOINT=https://storage.cv.alves.world
- MINIO_BUCKET=resume-branches
- MINIO_REGION=us-east-1
- MINIO_ROOT_USER=${MINIO_ROOT_USER:-minioadmin}
@@ -67,7 +67,7 @@ services:
- REDIS_URL=redis://cvfs-redis:6379/0
- CELERY_BROKER_URL=redis://cvfs-redis:6379/0
- CELERY_RESULT_BACKEND=redis://cvfs-redis:6379/0
- MINIO_ENDPOINT=http://cvfs-minio:9000
- MINIO_ENDPOINT=https://storage.cv.alves.world
- MINIO_BUCKET=resume-branches
- MINIO_REGION=us-east-1
- MINIO_ROOT_USER=${MINIO_ROOT_USER:-minioadmin}
@@ -107,13 +107,14 @@ services:
image: minio/minio:latest
container_name: "cvfs-minio"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
- MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
- MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
networks:
- cvfs-network
- dokploy-network
restart: unless-stopped
create-bucket: