Skip to content

limenet/public-ip-to-cloudflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

public-ip-to-cloudflare

Sets some Cloudflare record to the public IP of the server the script is running on. Very useful as a cheap-and-dirty dynamic DNS solution.

Usage

PHP

Create a .env file by running cp .env.example .env and customizing it to suit your needs and then execute the script using php run.php.

Docker

docker run -e "DOMAIN=example.com" -e "SUBDOMAIN=some.example.com" -e "CLOUDFLARE_EMAIL=info@example.com" -e "CLOUDFLARE_KEY=c0ffee" -e "RECORD_TYPE=A" limenet/public-ip-to-cloudflare

You can optionally supply PUSHOVER_API_TOKEN and PUSHOVER_USER to be notified via Pushover if the IP has changed since the last update.

About

Sets some Cloudflare record to the public IP of the server the script is running on. Very useful as a cheap-and-dirty dynamic DNS solution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published