From 785077dc576a319f4b006976042f6fd51d0b3905 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sat, 6 Aug 2022 10:26:47 -0700 Subject: [PATCH] #47 Move Pihole from server to Pi on .22 --- .../config => archives/server}/pihole/.env | 0 .../server}/pihole/docker-compose.yml | 0 server/config/traefik/config/pihole.yaml | 21 +++++++++++++++++++ 3 files changed, 21 insertions(+) rename {server/config => archives/server}/pihole/.env (100%) rename {server/config => archives/server}/pihole/docker-compose.yml (100%) create mode 100644 server/config/traefik/config/pihole.yaml diff --git a/server/config/pihole/.env b/archives/server/pihole/.env similarity index 100% rename from server/config/pihole/.env rename to archives/server/pihole/.env diff --git a/server/config/pihole/docker-compose.yml b/archives/server/pihole/docker-compose.yml similarity index 100% rename from server/config/pihole/docker-compose.yml rename to archives/server/pihole/docker-compose.yml diff --git a/server/config/traefik/config/pihole.yaml b/server/config/traefik/config/pihole.yaml new file mode 100644 index 0000000..350e880 --- /dev/null +++ b/server/config/traefik/config/pihole.yaml @@ -0,0 +1,21 @@ +http: + routers: + pihole: + rule: "Host(`pihole.jafner.net`)" + entryPoints: "websecure" + middlewares: "lan-only@file,pihole@file" + service: "pihole@file" + tls: + certResolver: "lets-encrypt" + + middlewares: + pihole: + addprefix: + prefix: "/admin" + + services: + pihole: + loadBalancer: + servers: + - url: "http://192.168.1.22/" + \ No newline at end of file