Cannot change max size of attachments via env variables on docker #6838

Closed
opened 2025-11-02 07:08:10 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @AuspeXeu on GitHub (Feb 10, 2021).

  • Gitea version (or commit ref):
  • Git version: 1.13.2
  • Operating system: docker on centos
  • Database (use [x]):
    • MySQL

Description

setting the env var GITEA__ATTACHMENT__MAX_SIZE=40 in docker-compose is ignored and the limit is still 4MB

Screenshots

image

Originally created by @AuspeXeu on GitHub (Feb 10, 2021). - Gitea version (or commit ref): - Git version: 1.13.2 - Operating system: docker on centos - Database (use `[x]`): - [x] MySQL ## Description setting the env var `GITEA__ATTACHMENT__MAX_SIZE=40` in docker-compose is ignored and the limit is still 4MB ## Screenshots ![image](https://user-images.githubusercontent.com/2115696/107514391-e4f77600-6ba9-11eb-9971-c8caf56399cc.png)
GiteaMirror added the type/question label 2025-11-02 07:08:10 -06:00
Author
Owner

@techknowlogick commented on GitHub (Feb 10, 2021):

most of the env vars passed to docker are only used to cerate the app.ini if it doesn't yet exist. If app.ini already exists then you'll need to configure it there. You appear to be using the format for the contrib helper script https://github.com/go-gitea/gitea/tree/master/contrib/environment-to-ini however that is not built into the default docker image.

@techknowlogick commented on GitHub (Feb 10, 2021): most of the env vars passed to docker are only used to cerate the app.ini if it doesn't yet exist. If app.ini already exists then you'll need to configure it there. You appear to be using the format for the contrib helper script https://github.com/go-gitea/gitea/tree/master/contrib/environment-to-ini however that is not built into the default docker image.
Author
Owner

@AuspeXeu commented on GitHub (Feb 10, 2021):

This would be a nice addition though, no ? :)

@AuspeXeu commented on GitHub (Feb 10, 2021): This would be a nice addition though, no ? :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6838