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

Files upload didn't work #25

Open
ggagnidze opened this issue Jul 27, 2021 · 4 comments
Open

Files upload didn't work #25

ggagnidze opened this issue Jul 27, 2021 · 4 comments

Comments

@ggagnidze
Copy link

Hi.

Got everything installed and working, but file uploads.

Dockers says all images are running (so mini too), but for some reason it tells that where is an error uploading file.

@sdprovost
Copy link

sdprovost commented Aug 15, 2021

I was able to get it partially working. I had to add a minio client (minio/mc) container that created the bucket as outline won't automatically create it and also set the download permission for the bucket. After adding that in I was able to upload a profile picture, but when uploading an image on a page it is trying to upload the image to S3 and not the specified minio endpoint/bucket specified in the environment variables.

Update, I also had to set the env variable AWS_S3_ACL to public-read and everything is working now! Also, below is my service I added to initialize the bucket.

  startup:
    image: minio/mc
    depends_on:
      - minio
    entrypoint: /bin/sh -c "
      /usr/bin/mc config host add minio http://minio:9000 ACCESS_KEY SECRET_KEY;
      /usr/bin/mc mb minio/outline-bucket;
      /usr/bin/mc policy set download minio/outline-bucket;
      exit 0;"

@alexkuang0
Copy link

@sdprovost's solution works for me! Thank you!

@badgehu
Copy link

badgehu commented Aug 25, 2022

just remember change ACCESS_KEY and SECRET_KEY to your own key,its on "env.minio"

@heyvaldemar
Copy link

hey guys, I wrote a detailed guide after I was able to configure Outline with MinIO and Keycloak.

Hopefully, it will help others.

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

5 participants