How to authenticate to gitea over https?

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)