Adding a setting to control the Gitea custom directory #655
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm considering ways to deploy Gitea with changes in the custom directory. Changes include logos, templates & themes. I'd like to do it with a Docker images based on the Gitea image with the only change being that my customizations would be stored in /var/lib/gitea/custom.
To be able to use that directory as the custom dir, I would need to set the env variable GITEA_CUSTOM, however that variable is hardcoded to be /data/gitea in the chart to be /data/gitea, where /data is where all the Gitea data is stored.
I would like to make that path configurable in the chart. What do you think of that idea? Would a PR for that be accepted?
I realize I could also set the STATIC_URL_PREFIX in the Server section, to point to themes etc. not hosted by the Gitea server itself, but I would not be able to deploy template files this way.
No thoughts on this from anyone?
Hi. Sorry, this issue slipped through. There are lots of hard-coded
/data/...
directory references across this Helm Chart code base. The intention to always use/data/
as base path is having an identical interface when using rootful Gitea image or the rootless one and not worry about that difference. In the past, there were an issue regarding that change for the rootless image (#396). But that was fixed.Right now, only making the
GITEA_CUSTOM
path configurable would increase the risk of erroneous Chart configuration. You'd also have to consider the remaining references of/data/...
in the code base. I currently don't see a benefit of making this configurable.Efforts have already been made to add Gitea template support to the Chart (#235 which was closed unmerged). If you have feel comfortable with it, you could go ahead and revive that PR. 🙂 That would be the most valuable addition and would lay the foundation for the customizations.
I'll take a look at your links. Thanks.