I’ve deployed Gitea on a Debian server.
Now I wanted to customize some elements. I know how to do that, it is written very clearly in the docs.
However, I can’t find or change the “custom” directory (CustomPath).
I know I should be able to find it with
gitea --help. But that shows me:
DEFAULT CONFIGURATION: CustomPath: /usr/local/bin/custom CustomConf: /usr/local/bin/custom/conf/app.ini AppPath: /usr/local/bin/gitea AppWorkPath: /usr/local/bin
And this looks very weird to me.
/usr/local/binis where you want to store software such as the Gitea binary. Why on eath would you want to store some HTML templates there? So I assume this can’t be right. I created some templates there but Gitea didn’t pick up these changes. Then I deleted this whole
configfolder… but there was an
app.ini… Was this bad? I guess not because I have all my configuration put in
CustomConf seems to be wrong to. I have my
I run Gitea through a systemd service with
--config /etc/gitea/app.ini enabled. I tried to also put
--custom-path /etc/gitea/custom or
Environment=GITEA_CUSTOM=/etc/gitea/custom here but this doesn’t work either. I will receive the following error if I start/stop the service:
sh: 0: getcwd() failed: No such file or directory
However the service is running after that. But
gitea --help still does show the old paths. Or will this always show the default paths? Maybe I misunderstood this?
In the Webinterface Admin settings it says
/var/lib/gitea/custom… completely different than
gitea --help. I guess I’ll try that tomorrow.