Caddy & Gitlab Pages

1. The problem I’m having:

web-server/caddy · master · GitLab.org / GitLab recipes · GitLab I followed this to reverse proxy into GitLab Pages and reloading the Caddy daemon using Systemd errored out, 100% due to bad syntax.

There is exactly 0 other bits of information on how to configure Caddy to work with GitLab pages.

2. Error messages and/or full log output:

Caddy fails to reload...

3. Caddy version:

v2.10.0

4. How I installed and ran Caddy:

apt install caddy
systemctl enable caddy

a. System environment:

Proxmox Host, Debian 12 VM, direct install from Debian Repositories (no Docker Container).

b. Command:

systemctl reload caddy

c. Service/unit/compose file:

d. My complete Caddy config:

*.example.io {
    tls {
        max_certs 10
    }
    
    proxy / http://127.0.0.1:8090 {
        fail_timeout 0s
        
        transparent
    }
}

5. Links to relevant resources:

web-server/caddy/Caddyfile · master · GitLab.org / GitLab recipes · GitLab GitLab’s “Example” Caddy file from when Caddy was in version 0.10.0 … And that’s it a google search reveals no other help, so I have nothing else to try.

Please share the Caddy output. You can also add debug directive to your Caddyfile to get more verbose debug log.

Also, replace this:

with this:

reverse_proxy http://127.0.0.1:8090 {

In fact, that entire proxy section seems to be an older version of Caddy. Please refer to this:

The tls section is wrong as well. Please refer to this:

The example you’re using for your Caddy configuration is for Caddy v1.x, which has been deprecated.

1 Like

This has been the most useful feedback I have gotten. I will implement this and go from there. Unfortunately the linked documentation is all I had, so literally its deprecated. Thanks!

Hopefully with this at least, this gets me more descriptive error messages than the service failed to load, or hell even better would be success.

1 Like

Hey thanks for the help again.

I am abandoning GitLab. It’s too much trouble when Forgejo works and my reasons to go over to GitLab wane, and the hassle of using it is not worth having Static Pages.