aboutsummaryrefslogtreecommitdiff
path: root/server.sh
diff options
context:
space:
mode:
authorhitlerrip <git@hitler.rip>2025-12-18 17:25:25 +0100
committerhitlerrip <git@hitler.rip>2025-12-18 17:25:25 +0100
commit9c9c58334afa16c126a9bad5f517e445d987b8a9 (patch)
tree747a18f0727c3cb8b3658fe6834c04fe2528b9dd /server.sh
parent3f8939bca8f96abbc6981ee8ee22ad3ea3df1bbd (diff)
downloadwebsite-9c9c58334afa16c126a9bad5f517e445d987b8a9.tar.gz
website-9c9c58334afa16c126a9bad5f517e445d987b8a9.tar.bz2
website-9c9c58334afa16c126a9bad5f517e445d987b8a9.zip
add adguard home
Diffstat (limited to 'server.sh')
-rwxr-xr-xserver.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/server.sh b/server.sh
index 9df4289..1ce5d22 100755
--- a/server.sh
+++ b/server.sh
@@ -299,6 +299,11 @@ sudo chown -R "$(whoami)":"$(whoami)" /srv/frontends/4get/
git clone --depth 1 https://git.lolcat.ca/lolcat/4get /srv/frontends/4get
echo "[server] 4get server created. You may now edit the robots.txt, data/config.php, add banners, the favicon and edit the template files."
+echo "[server] setting up adguard home..."
+sudo apt install -y dnsutils
+curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v
+echo "[server] finished setting up adguard home. allow port 3000 and run initial setup with admin panel set to appear on port 11211, then disallow port 3000 again. set log rotation to 7 days. enable encryption, https port 12221 tls port 853. make blocked dns queries return the IP adress of the host. add dns fallback servers. add filters, but allow google and piracy, ddns, bypassing and all tlds. also automate this ffs."
+
echo "[server] configuring shell..."
tee ~/.bash_aliases << EOF
alias t="tmux"