Giter VIP home page Giter VIP logo

Comments (6)

syphernl avatar syphernl commented on May 28, 2024 1

Got it to work, I needed the storage.buckets.get permission in order to determine the bucket region.

from hedgedoc.

syphernl avatar syphernl commented on May 28, 2024 1

I written a guide for it but I'm not 100% sure where to place it in the develop branch.
For 1.x there was a page with explanation about normal AWS S3 but for 2.x this page has been removed? Any suggestions as to where I could place it?

from hedgedoc.

ErikMichelson avatar ErikMichelson commented on May 28, 2024

HedgeDoc (1.x + upcoming 2.0) supports an S3 media backend. While S3 can be used with self-hosted tools like MinIO or cloud-services like AWS, most other providers provide a S3 interface too.
Google Cloud Storage can be used via the S3 Endpoint https://storage.googleapis.com.

To avoid having to maintain many different integrations, I don't see the requirement to add an extra GCS client for now.

References:

from hedgedoc.

syphernl avatar syphernl commented on May 28, 2024

Hi @ErikMichelson

Thanks for your reply!

HedgeDoc (1.x + upcoming 2.0) supports an S3 media backend. While S3 can be used with self-hosted tools like MinIO or cloud-services like AWS, most other providers provide a S3 interface too. Google Cloud Storage can be used via the S3 Endpoint storage.googleapis.com.

I wasn't aware that Google offered an interoperability method for S3. Definitely something worth looking into (and documenting if I manage to get it working)
For some reason I'm now getting an "Access Denied" error when adding an image in a HedgeDoc document whereas it works fine with a simple Python test script that uses boto3 to uploads a file to the bucket using the same credentials.
So it seems that the credentials and S3 interoperability are working fine, except not via HD.

To avoid having to maintain many different integrations, I don't see the requirement to add an extra GCS client for now.

I actually worked on that yesterday after opening this issue. I have a working implementation available for which I could open a PR.
But if it works via the S3 interoperability method it wouldn't require a separate integration.

from hedgedoc.

ErikMichelson avatar ErikMichelson commented on May 28, 2024

Happy to hear that it worked! I'm going to change this issue then towards documenting the usage of GCS with HedgeDoc.

from hedgedoc.

ErikMichelson avatar ErikMichelson commented on May 28, 2024

Having a guide to that seems great! As you seemingly tested it with HedgeDoc 1.x, and HedgeDoc 2.0 isn't released yet (still some things to finish up), you could put it into the master branch (docs/content/guides). The docs/mkdocs.yml file also needs a reference to your new guide to include it into the navigation.
For HedgeDoc 2, we'll transfer and (if necessary) adapt the guides later.

from hedgedoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.