Unable to create a workspace (Unauthorized)

After 2 days of pain, I’ve finally managed to install gitpod self hosted on my ubuntu 20.04 vps using k3s and docker, but now github oauth doesn’t really work. When looking at the integrations tab, this is what I see:

It doesn’t display the permissions even though I’ve authorized with every possible option. It doesn’t even show the user:email permission.

When creating a workspace, this is what I get:

My configuration looks like this. What am I doing wrong?