I want to increase the default quota of 50MB. Since I’m selfhosting a single user PieFed instance, I want to be able to use more space on my server for uploads.

I checked all options in the admin panel, but couldn’t find an option to change the quota.

Is this possible in .user.env or .env?

  • tenchiken@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 month ago

    Yes!

    Here’s what I am using on my .env.docker :

    # Per-user gallery quota, in bytes .
    FILE_UPLOAD_QUOTA = 150000000

    • squirrel@piefed.kobel.fyiOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 month ago

      This worked. I’ve set it in .user.env on my server. Thank you!

      @007@piefed.social I wanted to use the new “Stack Overflow” PieFed feature and designate this comment as the answer, but the option isn’t available. Could this feature be enabled for this community?

      • wjs018@piefed.social
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 month ago

        Try doing it now. I just changed it (using admin powers) and want to confirm that it federated out that change properly.

        Also, about environment variables. Not all of them are thoroughly documented I don’t think. They are all read into PieFed in the config.py file. Here is the line with the file upload quota for example.

        • squirrel@piefed.kobel.fyiOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 month ago

          The option is still not available. Maybe it doesn’t work for comments that have been posted before the change was made?

          • wjs018@piefed.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 month ago

            I’m traveling right now and haven’t looked at this part of the code at all, but my first guess is that it is because I am an admin instead of a moderator. We have had some similar permissions issues where the check is for mods and not inclusive of admins.

            Pinging @rimu@piefed.social for awareness.