Comments (6)
@whizzzkid @ahmaddxb Merged and released as 6.8.0
from docker-traefik-cloudflare-companion.
You can add a label e.g. "traefik.http.routers.cf-companion1-rtr.rule=Host(host.mydomain.com
)" this will force cf-companion to create the CNAMEs since cf-companion creates CNAMEs based on host rules. This is faster then logging into cloudflare and doing i manually.
However I'm also looking for a way to do this dynamically!!!
from docker-traefik-cloudflare-companion.
One "easy" way would be to query traefik at /api/http/routers and find all those routers with a Host rule like:
"Host(`<SERVICE><CLOUDFLARE_DOMAIN_PATTERN>`)"
It would have to be polling, because Traefik doesn't have an event. The routers discovered this way would need to be de-duped against those discovered from container labels.
from docker-traefik-cloudflare-companion.
@whizzzkid @ahmaddxb Can you try PR #59 and see if it does what you want?
from docker-traefik-cloudflare-companion.
@tiredofit Can this be closed?
from docker-traefik-cloudflare-companion.
Yes it can, thank you!
from docker-traefik-cloudflare-companion.
Related Issues (20)
- Docker HUB stuck on version 7.2.0 as the most recent HOT 2
- Base container not handle very well drop all caps and run as non-root
- Rate limited. Please wait and consider throttling your request speed
- Image fails to pull on any LXC instance of Docker HOT 2
- Constant Authentication Errors HOT 3
- Disable zabbix-agent per default HOT 1
- REFRESH_ENTRIES is false but companion tries to post existing CNAME
- 9207 Content-type must be application/json
- Issue (and fix) for SWARM_MODE not working with a daemon proxy
- Version 6.9.0 HOT 5
- Automatically detect domains HOT 1
- No Connection Adapters were found HOT 1
- Traefik Poll not picking up hosts from file HOT 1
- Labels are ignored HOT 6
- Could not route to /client/v4/zones/dns_records HOT 1
- `fmt` is not defined. HOT 1
- Container specific proxied status
- update readme for inconsistent TRAEFIK_FILTER vs TRAEFIK_CONSTRAINT
- TypeError: object of type 'NoneType' has no len()
- Add an option to set a specific text as Record Attribute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-traefik-cloudflare-companion.