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


    Cloudron Forum

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

    Solved Gitea Upload Size

    Gitea
    gitea
    3
    7
    14164
    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.
    • T
      timbo last edited by girish

      Hello o/
      i encountered the problem that changes to /app/data/app.ini like

      [attachment]
      ENABLED = true
      ALLOWED_TYPES = */*
      MAX_SIZE = 50
      MAX_FILES = 5
      

      do not work.
      I specifically wanted to increase the MAX_SIZE argument but it does not work.
      I also restarted the app and even rebootet. On a clean install with gitea it also happens.

      o7

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

        I can reproduce the bug but I cannot make out what the issue is. I will keep digging.

        1 Reply Last reply Reply Quote 2
        • imc67
          imc67 translator last edited by

          @girish any news?

          I just installed Gitea and wanted to have it more secure/closed with settings below but it doesn't seems toe work:

          LANDING_PAGE: login
          DISABLE_REGISTRATION: true
          REQUIRE_SIGNIN_VIEW: true
          

          Kind regards,

          Marcel

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

            @imc67 I think maybe you got the syntax wrong or the section name wrong. It should look like this in /app/data/app.ini:

            
            [server]
            LANDING_PAGE=login
            DISABLE_REGISTRATION=true
            REQUIRE_SIGNIN_VIEW=true
            

            Also, be sure to restart the app after the changes.

            imc67 1 Reply Last reply Reply Quote 1
            • imc67
              imc67 translator @girish last edited by

              @girish said in Gitea Upload Size:

              [server]
              LANDING_PAGE=login
              DISABLE_REGISTRATION=true
              REQUIRE_SIGNIN_VIEW=true

              Stupid me! I just copy-paste the code from https://docs.gitea.io/en-us/config-cheat-sheet/ assuming it's also the right syntax 😞

              Your version works!

              Thanks!!!!!!
              👍

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

                The upload size actually works but the issue is that when uploading large files, the request times out. I have opened an issue upstream - https://github.com/go-gitea/gitea/issues/12022 . I used the following config:

                
                [attachment]
                ENABLED=true
                MAX_SIZE=50
                MAX_FILES=2
                ALLOWED_TYPES=*/*
                
                1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff last edited by

                  @timbo The upload size issue is now fixed with https://github.com/go-gitea/gitea/pull/12024 . When they make a new release, we should get the fix.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB