How to authenticate to gitea over https?

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 11.1.21.3 (stable)
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Gitea 1.19.1~ynh1

Description of my issue

I created an empty repo on gitea and want to push my existing local repo to it. I’m prompted for my password but I’m denied.

koantig@myComputer:~/programming/myCode$ git push -u gitea master
Username for 'https://mydomain.com': koantig
Password for 'https://koantig@mydomain.com': 
remote: Verify
fatal: Authentication failed for 'https://mydomain.com/gitea/social/myCode.git/'

Gitea is public, the organisation (social) is of limited visibility. Username and password as used for yunohost.

Another couple of oddities with gitea:

  • my email shows as someInternalID@localhost
  • my account doesn’t have access to the admin side of gitea

Following the conversation here, I made the necessary changes in /opt/gitea/custom/conf/app.ini. It didn’t work, it still shows some obscure email address and doesn’t show the admin page.

(I ran systemctl restart gitea.service after the changes)