mirror of
https://github.com/Expand-sys/CloudflarePlesk-Link
synced 2026-03-22 09:47:09 +11:00
Update README.md
This commit is contained in:
parent
8eb3867825
commit
e001e42ff5
1 changed files with 31 additions and 0 deletions
31
README.md
31
README.md
|
|
@ -1 +1,32 @@
|
||||||
# CloudflarePlesk-Link
|
# CloudflarePlesk-Link
|
||||||
|
This is a refresh of a plesk extension i used for a while but found didnt work for acme txt records so here is my version that will eventually do all the things the previous one did.
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
Its real simple you can run it from anywhere nodejs will run and install as well as has internet access(obviously)
|
||||||
|
Theres a few Environment variables to set before you can use it though they are listed below
|
||||||
|
|
||||||
|
This you can get from running a quick command see below or check documentation
|
||||||
|
`curl -X POST "https://<plesk-url>/api/v2/auth/keys" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"ip\": \"<ip you want to access from>\", \"login\": \"admin\", \"password\": \"<password>\" \"description\": \"Secret key for Administrator\"}"`
|
||||||
|
PLESKKEY=
|
||||||
|
|
||||||
|
Cloudflare stuff is pretty easy just add your global/key with permissions to change and view dns records, the email you use for Cloudflare and your AccountID google these if you need to know
|
||||||
|
CLOUDKEY=
|
||||||
|
CLOUDEMAIL=
|
||||||
|
CLOUDACCOUNTID=
|
||||||
|
|
||||||
|
Plesk URL is your url that you access your plesk panel from, this can also be an ip if needed and may need the port 8443, i didnt have to but i also didnt set my plesk server up like a plebian
|
||||||
|
PLESKURL=
|
||||||
|
|
||||||
|
These last four are for sending an email to you when you are done (it takes about 30-60 seconds to do all the api calls) the email will contain a summary of the domains changed and the domains where the bot just sat around punching sand.
|
||||||
|
`EMAIL=`
|
||||||
|
`SENDER=`
|
||||||
|
`SPASS=`
|
||||||
|
`HOST=`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### random notes
|
||||||
|
the last api call where it actually pushes the acme-challenge dns record will only be called if the keys dont match, this just makes it a little faster for subsequent runs.
|
||||||
|
This was not meant to be a fast bot it is intended to be run in the wee hours of the night while everyones asleep by a cron job, to do this go to your terminal and smack in `crontab -e` and set it to the cron time you want it to run at google these i dont know them off by heart to be able to tell you. and then end it off with `node index.js` pointed at your cloned index.js make sure you have a .env file configured in there though it will just break and flop around if you dont.
|
||||||
|
|
||||||
|
#Good luck
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue