For: Linux and/or git server admins Subject: gitea update tips On August 01, 202...

@OldCoder@dansu.org

For: Linux and/or git server admins
Subject: gitea update tips

On August 01, 2026, I updated Gitea for the following "git" site from 1.26.4 to 1.27.1:
https://git.minetest.org/

I needed to make the changes discussed below. If you decide to do a similar update, try similar changes.

1. Locate your local copy of the "gitea" template file "head_navbar.tmpl". If you have the file in question, replace the following line:
<a class="item link-action" href data-url="{{AppSubUrl}}/user/logout">

in two places with:
<a class="item" href="{{AppSubUrl}}/user/logout">

2. If you use "nginx" as a front end for "gitea", edit the associated "conf.d/*.conf" config file. Add the following line to each of the "location" blocks that is associated with "gitea":

proxy_set_header X-Forwarded-Proto $scheme;

3. Edit your copy of the "gitea" settings file "conf/app.ini". If lines similar to the following are present, comment them out or remove them:
DISABLE_GRAVATAR = ...
ENABLE_FEDERATED_AVATAR = ...

Note: The settings in question have moved from the settings file to a GUI screen.

Subsequent to changes, restart nginx, restart gitea, clear browser cache, and restart browser. You might need to press Reload on individual "gitea" pages after that.

Note related to "AI":

I asked an "AI" how to do the first change here. The "AI" got it wrong. To identify the correct change, I ultimately did a manual compare of my copy of the template file with a copy from the 1.27.1 source code.

I find "AI" useful in that it can sometimes direct me to the places in a codebase that need work. However, I usually wouldn't trust "AI" code output.

#ai #git #gitea #llm #selfhosting