oznu / docker-cloudflare-ddns

A small amd64/ARM/ARM64 Docker image that allows you to use CloudFlare as a DDNS / DynDNS Provider.
https://hub.docker.com/r/oznu/cloudflare-ddns/
GNU General Public License v3.0
1.07k stars 213 forks source link

Cloudflare update deactivates HTTP proxy #7

Closed jwillmer closed 6 years ago

jwillmer commented 6 years ago

I need the HTTP proxy in cloudflare but the image disables it at each update.

error

oznu commented 6 years ago

-e PROXIED - Set to true to make traffic go through the CloudFlare CDN. Defaults to false

In your docker-compose add this to your environment section:

- PROXIED=true

jwillmer commented 6 years ago

I start to feel stupid for not reading the man. Works as intended!

For the interested 3d-party, my docker-compose file now supports IPv6 and proxy mode:

  cloudflare-ddns:
    image: oznu/cloudflare-ddns
    container_name: cloudflare-ddns
    network_mode: host
    restart: always
    environment:
      - EMAIL=hello@example.com
      - API_KEY=xxxxxxx
      - ZONE=example.com
      - SUBDOMAIN=subdomain
      - RRTYPE=AAAA
      - PROXIED=true
jwillmer commented 6 years ago

How about a docker-compose file on the Readme with all available options (set to default)?

oznu commented 6 years ago

I've added the proxy setting to the default docker-compose file. I'm hesitant to add the IPv6 and network_mode: host items as most users won't be using these very often.

jwillmer commented 6 years ago

Secondary docker-compose-example file?