https://github.com/khoiuna/cloudflare-nginx-dns-sh-scripts
Bash scripts to create nginx sites proxied by Cloudflare
https://github.com/khoiuna/cloudflare-nginx-dns-sh-scripts
bash bash-script cloudflare dns nginx scripts
Last synced: 3 months ago
JSON representation
Bash scripts to create nginx sites proxied by Cloudflare
- Host: GitHub
- URL: https://github.com/khoiuna/cloudflare-nginx-dns-sh-scripts
- Owner: KhoiUna
- License: gpl-3.0
- Created: 2022-04-30T21:08:03.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-27T03:10:36.000Z (about 3 years ago)
- Last Synced: 2025-07-12T09:00:04.870Z (12 months ago)
- Topics: bash, bash-script, cloudflare, dns, nginx, scripts
- Language: Shell
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash scripts to create nginx sites proxied by Cloudflare
## Prerequisite:
- `sudo apt-get install jq` to install `jq` - a tool to parse json
## Instructions:
1. `git clone https://github.com/KhoiUna/cloudflare-nginx-dns-sh-scripts dns-scripts` at your `/home/` directory
2. `sudo cp sample.config.json config.json` then `sudo nano config.json`. Configure `config.json` with your info
3. `sudo sh dns-scripts/create-site `.
- **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`