Traefik: Cloudflare domain record generation

Created on 3 May 2017  路  3Comments  路  Source: traefik/traefik

Now that we have the ability to create any docker container and assign it to a domain, wouldn't it be amazing that traefik also could create the domain in question using the cloudflare api?

This has a pretty powerful use case if you work with dynamic test servers that need to be assigned to specified domains and don't want to be bothered to setup domain addresses.

Example:

[cloudflare]
# authentication block (haven't looked in how it works)
key = "Some random key"

# generate domain names on defined host rules
onHostrule = true

# Clean up older domains when not being used anymore
cleanUp = false

# static domain definitions
[cloudflare.domains]
kinquestion statu5-frozen-due-to-age

Most helpful comment

I think it would be great to have it. Currently it's possible to have wildcards on cloudflare but these are limited. So you can't use the security features of cloudflare. When having the domains created as a non-wildcard you'll have the features. So it would be great if traefik could handle these as well. ;)

All 3 comments

I think you guys could make it work via https://github.com/solidnerd/docker-cloudflare and a simple bash script isn't it?

I'll close the issue due to inactivity but feel free to re-open if needed.

I think it would be great to have it. Currently it's possible to have wildcards on cloudflare but these are limited. So you can't use the security features of cloudflare. When having the domains created as a non-wildcard you'll have the features. So it would be great if traefik could handle these as well. ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OndroNR picture OndroNR  路  3Comments

rogeriollacerda picture rogeriollacerda  路  3Comments

aximo picture aximo  路  3Comments

pichouk picture pichouk  路  3Comments

r3pek picture r3pek  路  3Comments