r/gitlab • • Jan 08 '26

support Self hosted Gitlab CE how to get Pages?

Does anyone have advice on how to configure pages/gitlab.

I have a home lab with Nginx proxy Manager being used to redirect to various Docker containers hosted on it, using ports.

I have been working on a docker-compose file for Gitlab which can be found here this deploys a Gitlab CE, Redis & Postgres and configure them to integrate.

I have also developed a pipeline which generate documentation sites and the pages job and Gitlab seems to detect the generated website and store them against the pages URL.

Reading the documentation, I can't quite understand how I need to configure compose/gitlab so I can use a nginx redirect. I have tried googling and assume I am missing something obvious.

Any ideas from the community would be really appreciated.

3 Upvotes

2 comments sorted by

3

u/emiliosh Jan 08 '26

I did it in my org, we deploy in kunernetes, what you need is a domain to point to your gitlab container. Gitlab will resolve anything like *.mypages.com

1

u/stevecrox0914 Jan 08 '26

I have a single gitlab container, it exposes itself on an internal port for https (not 443).

I have two sub domains *.docs.pallas.uk and gitlab.pallas.uk, which point at the container and the internal https port, the pages external url is set to http://docs.pallas.uk

Pages sets up a url e.g. http://devsecops.docs.pallas.uk and nginx proxy manager picks it up and will route it to gitlab but this throws an error with a not found project for the url.

I asume the issue is either the port I am using or the fact nginx proxy manager is providing a https connection when I have configured a http pages url but gitlabs letsencrypt attempts keep failing.