- Create an
A record
in Cloudflare pointing at your current IP
-
Get your
ZONE_ID
from theoverview
tab for your CF domain. Add it to.env
-
Get your
GLOBAL_API_KEY
from the/profile/api-tokens
section. Add it to.env
-
Add the email you use to login to CF to the
AUTH_EMAIL
key in.env
-
Add the name of your url or the
ZONE_NAME
to.env
To run on a cron:
-
Type
crontab -e
in the terminal -
*/30 * * * * node <location of index.js on your machine>
- This runs the node script at 30 minute intervals