mirror of
https://github.com/MSWS/Homelab.git
synced 2025-12-05 23:00:24 -08:00
feat: Configure reverse proxies and update Pi-hole restart policy
- Update `Caddyfile` to include reverse proxies for `git.msws.xyz` and `*.code.msws.xyz`, and adjust proxy rules - Add auto-restart policy to Pi-hole container in `compose.yml` [caddy/Caddyfile] - Added a reverse proxy for `git.msws.xyz` pointing to `gitea-server-1:3000`. - Added a reverse proxy for subdomains under `*.code.msws.xyz` pointing to `code-server:8443`. - Adjusted general proxy rules to accommodate the new entries. - Commented out the redirect rule for `/` to `https://msws.github.io`. [pihole/compose.yml] - Added a `restart: always` policy to ensure the Pi-hole container restarts automatically if it stops.
This commit is contained in:
@@ -32,6 +32,14 @@ registry.msws.xyz {
|
||||
}
|
||||
}
|
||||
|
||||
git.msws.xyz {
|
||||
reverse_proxy gitea-server-1:3000
|
||||
}
|
||||
|
||||
*.code.msws.xyz {
|
||||
reverse_proxy code-server:8443
|
||||
}
|
||||
|
||||
yt.local.msws.xyz, yt.msws.xyz {
|
||||
reverse_proxy invidious:3000
|
||||
}
|
||||
@@ -65,4 +73,5 @@ photos.local.msws.xyz, photos.msws.xyz {
|
||||
reverse_proxy https://msws.github.io {
|
||||
header_up Host msws.github.io
|
||||
}
|
||||
# redir / https://msws.github.io{uri}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ services:
|
||||
container_name: pihole
|
||||
image: pihole/pihole:latest
|
||||
network_mode: host
|
||||
restart: always
|
||||
environment:
|
||||
TZ: "America/Los_Angeles" # Change this to your timezone
|
||||
WEBPASSWORD: ${WEB_PASSWORD} # Set the Pi-hole admin password
|
||||
|
||||
Reference in New Issue
Block a user