Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.
Problem to solve
Describe your question in as much detail as possible:
I’m trying to run gitlab as a docker container, behind a reverse proxy, however the container keeps trying to use https, regardless of me disabling it.
- What are you seeing, and how does that differ from what you expect to see?
- Consider including screenshots, error messages, and/or other helpful visuals
I shouldn’t be seeing given that I have https disabled for NGINX
gitlab | ==> /var/log/gitlab/nginx/error.log <==
gitlab | 2024/11/04 19:30:54 [emerg] 2038#0: cannot load certificate "/etc/gitlab/ssl/gitlab.example.com.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/gitlab/ssl/gitlab.example.com.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
Steps to reproduce
Which troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
Configuration
Provide screenshots from the GitLab UI showing relevant configuration, if applicable.
On self-managed instances, add the relevant configuration settings or changes.
I’m trying to run this in docker compose, with the following configuration:
services:
gitlab:
image: gitlab/gitlab-ce
container_name: gitlab
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url = 'https://gitlab.example.com'
gitlab_rails['gitlab_shell_ssh_port'] = 2424
nginx['listen_port'] = 80
nginx['listen_https'] = "false"
nginx['real_ip_trusted_addresses'] = ['reverse_proxy_ip']
nginx['real_ip_header'] = 'X-Forwarded-For'
nginx['real_ip_recursive'] = 'on'
letsencrypt['enable'] = false
letsencrypt['auto_renew'] = false
ports:
- '80:80' # HTTP Port
- '2424:22' # SSH Port
volumes:
- './gitlab_data/config:/etc/gitlab'
- './gitlab_data/logs:/var/log/gitlab'
- './gitlab_data/data:/var/opt/gitlab'
shm_size: '256m'
I have a Caddy instance on another machine that should reverse proxy “gitlab.example.com” to “local_ip:80”, however I have not touched that yet, as port 80 seems to either use https, or the web server just doesn’t start due to missing certificates.
Versions
Please add an x whether options apply, and add the version information.
- Self-managed
-
GitLab.com
SaaS - Dedicated
Versions
- GitLab (Web:
/help
or self-managed system informationsudo gitlab-rake gitlab:env:info
): 17.3.6-ce.0
Helpful resources
- Check the FAQ for helpful documentation, issues/bugs/feature proposals, and troubleshooting tips.
- Before opening a new topic, make sure to search for keywords in the forum search
- Check the GitLab project for existing issues. If you encounter a bug, please create a bug report issue.
- Review existing troubleshooting docs.
Thanks for taking the time to be thorough in your request, it really helps!