CNAME records

- Recommended way to configure multiple subdomains per IP address is now via CNAME records. Notes added in README.
- Updated config.json subdomain examples to reflect how base domain is appended in code.
This commit is contained in:
Timothy Miller
2019-10-15 23:13:57 -04:00
parent 9487784876
commit f9d2ccb2ad
4 changed files with 134 additions and 4 deletions

View File

@@ -20,6 +20,9 @@ Values explained:
"proxied": false (defaults to false. Make it true if you want CDN/SSL benefits from cloudflare. This usually disables SSH)
```
## :fax: Hosting multiple domains on the same IP?
You can save yourself some trouble when hosting multiple domains pointing to the same IP address (in the case of Traefik) by defining one A & AAAA record 'ddns.example.com' pointing to the IP of the server that will be updated by this DDNS script. For each subdomain, create a CNAME record pointing to 'ddns.example.com'. Now you don't have to manually modify the script config every time you add a new subdomain to your site!
## :running: Running
This script requires Python 3.5+, which comes preinstalled on the latest version of Raspbian. Download/clone this repo and execute `./sync`, which will set up a virtualenv, pull in any dependencies, and fire the script.