Skip to content

Commit

Permalink
Updated install script for nginx settings
Browse files Browse the repository at this point in the history
  • Loading branch information
clayauld committed Oct 6, 2021
1 parent efa358a commit fcba91e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nginx/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#! /bin/bash
echo
echo "This script installs the transparent-proxy.service to systemd and transparent-proxy script to /usr/local/bin"
echo "This script installs the required components to set up an Nginx tranparent proxy for DNS-over-TLS and Pi-Hole"
echo "PLEASE BE AWARE THIS WILL OVERWRITE YOUR CURRENT NGINX CONFIG!!"
echo "However, it will back up your old config in case you need to revert."
echo
curl -s https://raw.githubusercontent.com/clayauld/Secure-Adblocking-DNS/master/nginx/nginx.conf > /etc/nginx/ngxin.conf
mkdir /etc/nginx/streams
curl -s https://raw.githubusercontent.com/clayauld/Secure-Adblocking-DNS/master/nginx/streams/DoT_dns > /etc/nginx/streams/DoT_dns
systemctl restart nginx
curl -s https://raw.githubusercontent.com/clayauld/Secure-Adblocking-DNS/master/nginx/transparent-proxy.service > /lib/systemd/system/transparent-proxy.service
curl -s https://raw.githubusercontent.com/clayauld/Secure-Adblocking-DNS/master/nginx/transparent-proxy.sh > /usr/local/bin/transparent-proxy
sudo systemctl daemon-reload
Expand Down

0 comments on commit fcba91e

Please sign in to comment.