

I’m not a law expert, but I think even in Germany you would need to prove a pattern not a one off banned a black/trans person to accuse of discrimination. Otherwise any negative repercussion to a black/trans person would generate a discrimination lawsuit, and that just seems absurd.
I assume that if codeberg forces this it will do so with the most egregious offenders, because like you have pointed out it’s impossible to differentiate good code written with AI tools from good code written without them, but bad code written with AI tools is sometimes very differentiable from bad code written without them. And at the end of the day they’re trying to safe-guard against lawsuits over it (as the person uploading the code is not the owner) and becoming a slop repository.
But also, here’s the thing, they’re not making money of you hosting your code there, so it’s much harder to force them to take someone’s data. You could force Google to host your photos if you were unjustly banned, you can’t force me to do so if you found a loophole to use my server for that.

Why do you want to expose them? This might limit the solutions.
The way I do this is in 2 different ways:
Tailscale, my server connects to tailscale so all I have to do is connect to it from my phone and I can access things remotely easily. This is the best for most things, but has the downside that others can’t access it as easily
I have a VPS (two actually at the moment as I’m switching providers from Vultr to IONOS) that also connects to tailscale so it can access my home server through it, then using Caddy I expose the services on a subdomain of the VPS. This is what I do for things that others might want to access, or things I don’t want to have to connect to tailscale to access.
If you’re going down the second route do consider that you will need to: