#Hostea tip: when Gitea is installed from from binary, you need to run it with --work-path in addition to -c to make the doctor work:
gitea doctor --work-path /var/lib/gitea -c /etc/gitea/app.ini
It is not enough to provide @Gitea with the configuration file, it always needs the --work-path argument, or the GITEA_WORK_DIR environment variable.
Reason why it is set in the systemd service file:
Authored by @dachary
A newer server operated by the Mastodon gGmbH non-profit