Oh sorry, I might have misunderstood your question. Yes, Codeberg is centralised, but it is registered at a public e.V. in Germany making it more open (not a company).
But then you could use what they use, Forgejo to self host.
Or Gittea as suggested by somebody else.