Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Gitea minio storage for lfs

    Gitea
    4
    7
    487
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • infogulch
      infogulch last edited by infogulch

      Hi!

      I'm interested in using git LFS storage from my gitea app but I'm worried that my server could run out of space with many large files. Gitea supports any s3-like storage as a backend for LFS and attachments (see Gitea Config Cheat Sheet). So, using the gitea app terminal I edited /app/data/app.ini to add the following configuration and restarted gitea from the dashboard:

      [server]
      LFS_START_SERVER = true
      
      [storage.my-storage]
      STORAGE_TYPE = minio
      SERVE_DIRECT = true
      MINIO_ENDPOINT = s3.us-west-001.backblazeb2.com 
      MINIO_ACCESS_KEY_ID = {secret-id}
      MINIO_SECRET_ACCESS_KEY = {secret-key}
      MINIO_BUCKET = my-bucket
      MINIO_LOCATION = us-west-001
      MINIO_USE_SSL = true
      
      [lfs]
      STORAGE_TYPE = my-storage
      
      [attachment]
      STORAGE_TYPE = my-storage
      MAX_SIZE = 50
      

      And it seems to work, great! Yes, I'm actually using backblaze b2, because it's much more cost efficient than amazon's service. Yay compatibility!

      • One question: is /app/data/app.ini the correct place to add gitea custom configurations?
      marcusquinn girish 2 Replies Last reply Reply Quote 1
      • marcusquinn
        marcusquinn @infogulch last edited by

        @infogulch Great idea! I might do the same with Wasabi. Backblaze is a decent alternative too.

        Well worth adding this gem to the instructions/documents.

        I finally got around to trying out Gitea, and have to say; love it!

        There's a big difference for be with software between like and love, but Gitea is one sweet nicely brewed cup of coffee.

        robi 1 Reply Last reply Reply Quote 1
        • robi
          robi @marcusquinn last edited by

          @marcusquinn now the trick is to know how to pronounce it..

          marcusquinn 1 Reply Last reply Reply Quote 0
          • marcusquinn
            marcusquinn @robi last edited by

            @robi I'm going with Gitier, as in Glacier. Can't imagine anyone would say Gitay?

            robi 1 Reply Last reply Reply Quote 0
            • robi
              robi @marcusquinn last edited by robi

              @marcusquinn for me the word is vocalized in a foreign language I speak, which sounds like Andre-a // Git-eh-ah

              Otherwise it's more something like Giddiup where the p is silent.

              Now Tea also some to mind.. the female name and the beverage.

              So maybe the Git coffee is really just a dark tea 😉

              infogulch 1 Reply Last reply Reply Quote 0
              • infogulch
                infogulch @robi last edited by

                I've been struggling with how to pronounce it as well; so far my internal monologue has been settling in the direction of "Andre-a // Git-eh-ah", but stealing the t from git: "Gi-tee-ah". It doesn't sound like it has "git" anymore, but at least there's "tea". Have the devs given any talks on Gitea? I'd rather settle on something instead of sounding it out 4-5 times every time I read it lol

                1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff @infogulch last edited by

                  @infogulch said in Gitea minio storage for lfs:

                  One question: is /app/data/app.ini the correct place to add gitea custom configurations?

                  Yes, that's the correct place!

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post