2025-02-23, 07:09 PM
Hi
I have managed to get Caddy working as a reverse proxy server, and all working well so far. I have a DDNS hostname via NO-IP. From what I have read I need to set it up to work with the dynamic_dns plug-in.
AI Answer
To set up DDNS (Dynamic DNS) with Caddy, you can use the built-in "dynamic_dns" module which automatically updates your DNS records with your current public IP address, making it particularly useful when your IP address changes frequently; essentially, you configure Caddy to periodically check your IP and update the DNS record with your provider if it changes.
My current script is very simple like this
mydomainname.hopto.org {
encode gzip
reverse_proxy localhost:8096
}
I have tried adding this to my script (with my own credentials)
{
dynamic_dns {
provider noip {
username "your_noip_username"
password "your_noip_password"
hostname "yourdomain.no-ip.info"
}
domains {
"yourdomain.no-ip.info"
}
}
}
But I get this error
Windows could not start the caddy service on local computer
The service did not return an error. This could be an internal Windows error or an internal service error.
Can anyone tell me where I am going wrong
Many thanks
I have managed to get Caddy working as a reverse proxy server, and all working well so far. I have a DDNS hostname via NO-IP. From what I have read I need to set it up to work with the dynamic_dns plug-in.
AI Answer
To set up DDNS (Dynamic DNS) with Caddy, you can use the built-in "dynamic_dns" module which automatically updates your DNS records with your current public IP address, making it particularly useful when your IP address changes frequently; essentially, you configure Caddy to periodically check your IP and update the DNS record with your provider if it changes.
My current script is very simple like this
mydomainname.hopto.org {
encode gzip
reverse_proxy localhost:8096
}
I have tried adding this to my script (with my own credentials)
{
dynamic_dns {
provider noip {
username "your_noip_username"
password "your_noip_password"
hostname "yourdomain.no-ip.info"
}
domains {
"yourdomain.no-ip.info"
}
}
}
But I get this error
Windows could not start the caddy service on local computer
The service did not return an error. This could be an internal Windows error or an internal service error.
Can anyone tell me where I am going wrong
Many thanks