GitLab Pages NGINX reverse proxy config

Hey!

I’m running GitLab omnibus on Ubuntu 20.04 with unbundled NGINX and I’d like to allow users of my installation to use GitLab pages, however I can’t get it to work. I’ve tried proxy_pass localhost:8090 from:
##! Listen for requests forwarded by reverse proxy
gitlab_pages[‘listen_proxy’] = “localhost:8090”

(obviously with proxy_pass off), but that gives me a 502 bad gateway error. I also tried to just copy the NGINX config I use for GitLab itself (wasn’t really expecting it to work but it was worth a try) and that obviously didn’t work as well.

What am I doing wrong in the config? Is my setup even supported for GitLab pages?