sudo apt-get install jq
to installjq
- a tool to parse json
git clone https://github.com/KhoiUna/cloudflare-nginx-dns-sh-scripts dns-scripts
at your/home/<user>
directorysudo cp sample.config.json config.json
thensudo nano config.json
. Configureconfig.json
with your infosudo sh dns-scripts/create-site <your full site's domain name>
.- Eg:
sudo sh dns-scripts/create-site test.example.com
. This will run all the scripts to create your own site folder in/var/www/test.example.com
and create/etc/nginx/sites-available/test.example.com
symlink in/etc/nginx/sites-enabled
- Eg: