Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Empty webhook configuration from environment variables #97

Open
1 task done
brettinternet opened this issue Jan 6, 2024 · 1 comment
Open
1 task done

Empty webhook configuration from environment variables #97

brettinternet opened this issue Jan 6, 2024 · 1 comment
Assignees

Comments

@brettinternet
Copy link

brettinternet commented Jan 6, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Version

3.3.0

Describe The Bug

I am unable to set webhook configuration from environment variables.

I have used the latest tag for 3.3.0 and also the most recent sha-2f048d4.

Steps To Reproduce

services:
  cloudflare-ddns:
    image: ghcr.io/joshuaavalon/cloudflare-ddns:latest
    environment:
      CF_DNS__CRON: "*/10 * * * *"
      CF_DNS__LOG_LEVEL: debug
      CF_DNS__AUTH__SCOPED_TOKEN: "${CLOUDFLARE_API_TOKEN}"
      CF_DNS__DOMAINS_0__ZONE_NAME: "${MY_DOMAIN}"
      CF_DNS__DOMAINS_0__ZONE_ID: "${CLOUDFLARE_MY_DOMAIN_ZONE_ID}"
      CF_DNS__DOMAINS_0__NAME: "ip.${MY_DOMAIN}"
      CF_DNS__DOMAINS_0__PROXIED: "false"
      CF_DNS__DOMAINS_0__CREATE: "true"
      CF_DNS__DOMAINS_0__TYPE: A
      CF_DNS__DOMAINS_0__WEBHOOK_0__RUN: "http://healthchecks:8000/ping/${HEALTHCHECKS_DDNS_UUID}/start"
      CF_DNS__DOMAINS_0__WEBHOOK_0__SUCCESS: "http://healthchecks:8000/ping/${HEALTHCHECKS_DDNS_UUID}"
      CF_DNS__DOMAINS_0__WEBHOOK_0__FAILURE: "http://healthchecks:8000/ping/${HEALTHCHECKS_DDNS_UUID}/fail"

Expected Behavior

Configure the webhook with environment variables.

YAML Configuration

No response

JS Configuration

No response

Relevant Output Log

DEBUG: Running with the following configuration
    config: {
      "api": "https://api.cloudflare.com/client/v4/",
      "timeout": 5000,
      "domains": [
{
          "name": "ip.example.com",
          "type": "A",
          "proxied": false,
          "create": true,
          "zoneId": "zoneid",
          "zoneName": "example.com",
          "webhook": {}
}
…
@joshuaavalon joshuaavalon self-assigned this Jan 6, 2024
@joshuaavalon
Copy link
Owner

I have checked and it parsed correctly. Please check on your side.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants