One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/bin/bash | |
| # Cloudflare as Dynamic DNS | |
| # From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/ | |
| # Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/ | |
| # Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/ | |
| # Update these with real values | |
| auth_email="[email protected]" | |
| auth_key="global_api_key_goes_here" | |
| zone_name="example.com" | 
| # I had a bit of trouble getting my unifi controller (hosted offsite) to use a proxy/letsencrypt. So here are the fruits of my labor. | |
| # The unifi default port is 8443 running on localhost. | |
| # License: CC0 (Public Domain) | |
| server { | |
| # SSL configuration | |
| # | |
| listen 443 ssl default_server; | |
| listen [::]:443 ssl default_server; | 
| # EdgeOS v1.9 Google Fiber Config Script | |
| # by Steve Jenkins (http://www.stevejenkins.com/) | |
| # Last updated: Aug 14, 2016 | |
| # Based on settings & scripts by Atlantisman, TK, and CompTech | |
| # RUN THIS SCRIPT AS ROOT ON YOUR EDGEROUTER | |
| # Script runs best if you copy and paste in sections | |
| #______________________Basic Firewall Setup_______________________________ | |
| configure |