Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup s3 with minio #317

Open
gribanoveu opened this issue May 8, 2024 · 1 comment
Open

How to setup s3 with minio #317

gribanoveu opened this issue May 8, 2024 · 1 comment

Comments

@gribanoveu
Copy link

gribanoveu commented May 8, 2024

i use compose project like this:

s3:
    container_name: codex_minio
    image: minio/minio:latest
    restart: unless-stopped
    environment:
        MINIO_ROOT_USER: mini
        MINIO_ROOT_PASSWORD: mini
        MINIO_ACCESS_KEY: minio
        MINIO_SECRET_KEY: minio123
    ports:
        - 9000:9000
        - 9001:9001
    volumes:
        - minio:/data
    command: server /data --console-address ":9001"

and setting (i created bucket and region in minio)

uploads:
  driver: "s3"
  s3:
    bucket: "codex"
    region: "eu-central-1"
    baseUrl: "http://localhost:9000"
    keyPrefix: "/"
    accessKeyId: "minio"
    secretAccessKey: "minio123"

but after i load file i see

2024-05-08 15:32:46 POST /api/transport/image 500 524.132 ms - 148
2024-05-08 15:32:46 PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
2024-05-08 15:32:46     at throwDefaultError (/usr/src/app/node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js:8:22)
2024-05-08 15:32:46     at deserializeAws_restXmlPutObjectCommandError (/usr/src/app/node_modules/@aws-sdk/client-s3/dist-cjs/protocols/Aws_restXml.js:5781:43)
2024-05-08 15:32:46     at processTicksAndRejections (node:internal/process/task_queues:96:5)
2024-05-08 15:32:46     at async /usr/src/app/node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js:7:24
2024-05-08 15:32:46     at async /usr/src/app/node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js:13:20
2024-05-08 15:32:46     at async StandardRetryStrategy.retry (/usr/src/app/node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js:51:46)
2024-05-08 15:32:46     at async /usr/src/app/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/flexibleChecksumsMiddleware.js:56:20
2024-05-08 15:32:46     at async /usr/src/app/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:6:22
2024-05-08 15:32:46     at async Promise.all (index 0)
2024-05-08 15:32:46     at async Upload.__uploadUsingPut (/usr/src/app/node_modules/@aws-sdk/lib-storage/dist-cjs/Upload.js:66:26)

where i can get worked config?

@nikmel2803
Copy link
Member

hey! sorry for the confusion, the baseUrl option is currently not used, so only AWS implementation is supported. pull requests are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants