question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for creating multiple CNAMES per container

See original GitHub issue

With Traefik 2 you can create multiple subdomains for a single container, like so

      - "traefik.http.routers.foobar-rtr.rule=Host(`foo.$DOMAIN_NAME`,`bar.$DOMAIN_NAME`)" 

or like so

      - "traefik.http.routers.foobar-rtr.rule=Host(`foo.$DOMAIN_NAME`)"
      - "traefik.http.routers.foobar-rtr.rule=Host(`bar.$DOMAIN_NAME`)"

It seems that only one subdomain per container is seen by this tool and only a single CNAME is created. It would be nice if this tool would catch and create all of the CNAMES defined in a container’s compose file with either method of formatting in these examples.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
tiredofitcommented, Aug 5, 2020

I’ve identified the issue - Terribly sorry. This broke when introducing support for Traefik 2.2.2 a few weeks back. A new tag tiredofit/traefik-cloudflare-companion:latest and tiredofit/traefik-cloudflare-companion:4.2.1 is now available on Docker Hub

1reaction
tiredofitcommented, Aug 12, 2020

There’s a wildcard that should allow Host, HostSNI, HostHeader etc…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can we have multiple CNAMES for a single Name?
You cannot. A CNAME makes one record another name for another. If a record could have CNAMES for two names ...
Read more >
Can I have multiple CNAME records? - Quora
You can have multiple CNAME records on the same subdomain, each returned on some condition, but the DNS will only return a single...
Read more >
Using an SSL certificate for multiple CNAMEs ... - Amazon AWS
To use an SSL certificate for multiple domain names with CloudFront, import your certificate into ACM or the AWS Identity and Access Management ......
Read more >
CNAME Reuse - Imperva Documentation Portal
Imperva enables the use of site settings for several different domains that share the same IP address. This is implemented by using a...
Read more >
Add a CNAME record to your domain's DNS records
Go to your domain's DNS records. Add a record to your DNS settings, selecting CNAME as the record type. Return to the first...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found