Do rcstack and traefik support CNAMEs?

Hi,

I had an old rccontrol installation migrated to the new rcstack one.
The migration was done by following the Migration to Docker & Rcstack - RhodeCode rcstack 5.13.0 documentation documentation.

The initialization and the running instance was set with a rhodecode.example.com domain. Everything works smoothly.

But I have also two CNAMEs a.example.com and b.example.com, redirecting to the rhodecode.example.com one, and when accessing with those addresses, I’ve got the usual 404 error code page saying that the rhodecode service may not be up.

No https is yet configured.

Is this covered by the new rcstack/treafik?

Hi !

so the matching rule is define with an explicit Host match here

https://code.rhodecode.com/rhodecode-enterprise-docker/files/master/docker-compose-apps.yaml?at=master#L122

We’re supporting this for our own instance by using the docker-compose-apps.override.yaml file.

Here\s how it the rhodecode app looks for our case with SSL support and 3 domains

  rhodecode:
    deploy:
      replicas: 10

    labels:
      # SSL + proxy prefix
      - "traefik.http.routers.rhodecode.entrypoints=http,https"
      - "traefik.http.routers.rhodecode.rule=Host(`${RC_HOSTNAME:?must-specify-rhodecode-hostname}`, `code.rhodecode.com`, `my.rhodecode.com`)"
1 Like

That’s it, I was tweaking the wrong end.

As I did not see anything about this topic in the documentation, I was not sure if that was possible. If it’s possible to add something about this in the overrides files and/or in the documentation, that would be great.

Thanks!