Out of curiosity, is there a way for me to hide my User accounts from public view? Maybe like a config option?
I don’t think that’s possible. But you can make a proposal on the issues: https://github.com/go-gitea/gitea/issues
Will do. I was thinking about it and it might be possible with templates. Going to test it out this week and see.
Hi
I know that the thread is old, but could you please tell how you solved this? I’m also interested.
Best regards
Josef
Nevermind, I figured this out. You need to create the folder: “custom/templates/explore”, then put a file called: “users.tmpl” inside it and now you can customize the user list. Another way would be to customize the “navbar.tmpl” template and remove the Users-Tab. On my case, I’m looking for just hidding the usernames of the admin users; showing the emails is OK.
For customizing other templates not mentioned on the docs, you may have to look for the template here:
https://github.com/go-gitea/gitea/tree/master/templates
then create the folder and its replacement under: “custom/templates”.
Another nice hack if what you want is to hide all gitea pages to the anonymous users is to the the variable: “REQUIRE_SIGNIN_VIEW” to “true” inside the “[service]” section of your gitea’s app.ini file.