I’m having some trouble setting up dynamic DNS with Cloudflare. I have everything setup, but I keep getting this error when I do sudo docker-compose up
:
ddclient | FAILED: updating oops.domain.com: No DNS record ID found.
(oops.domain.com is what I’m trying to redirect to my Nextcloud instance)
Here’s my nextcloud.subdomain.conf:
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name oops.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_cloud cloud;
proxy_max_temp_file_size 2048m;
proxy_pass https://$upstream_oops:443;
}
}
Here’s my Nextcloud config.php:
<?php
$CONFIG = array (
'memcache.local' => '\OC\Memcache\APCu',
'datadirectory' => '/data',
'trusted_proxies' => ['letsencrypt'],
'overwrite.cli.url' => 'https://oops.domain.com/',
'overwritehost' => 'oops.domain.com',
'overwriteprotocol' => 'https',
);
'trusted_domains' =>
array (
0 => '192.168.0.28:80',
1 => 'oops.domain.com',
),
I have the Cloudflare section in ddclient.conf set to:
##
## CloudFlare (www.cloudflare.com)
##
protocol=cloudflare, \
zone=domain.com, \
ttl=1, \
login=MyEmail, \
password=GlobalAPIKey \
oops.domain.com
I’m also getting this error further up in the log, but I don’t have that directory mounted as a volume, so I don’t know what it’s talking about:
ddclient | WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''