For self-hosting your only choice is gitlab, which many use. However for me it is too heavy. I want to have something that is light-weight.
Installation and Configuration
After the installation, you can run it on any port(the default is 3000). e.g. ./gitea web –port 4000, then point your browser to http://localhost:4000 and follow the install wizard. Your git repositories will be at $HOME/gitea-repositories by default.
It took me a while to figure out how to use its Wiki, basically to link to another Wiki page(e.g. Wiki-title) you can use the syntax below. Note for each git repository you will have a separate wiki git repository.[Wiki-title](wiki/Wiki-title)