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:
MSWS
2025-03-27 22:18:33 -07:00
parent 2707205790
commit f2ab8b8346
2 changed files with 10 additions and 0 deletions

View File

@@ -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 { yt.local.msws.xyz, yt.msws.xyz {
reverse_proxy invidious:3000 reverse_proxy invidious:3000
} }
@@ -65,4 +73,5 @@ photos.local.msws.xyz, photos.msws.xyz {
reverse_proxy https://msws.github.io { reverse_proxy https://msws.github.io {
header_up Host msws.github.io header_up Host msws.github.io
} }
# redir / https://msws.github.io{uri}
} }

View File

@@ -3,6 +3,7 @@ services:
container_name: pihole container_name: pihole
image: pihole/pihole:latest image: pihole/pihole:latest
network_mode: host network_mode: host
restart: always
environment: environment:
TZ: "America/Los_Angeles" # Change this to your timezone TZ: "America/Los_Angeles" # Change this to your timezone
WEBPASSWORD: ${WEB_PASSWORD} # Set the Pi-hole admin password WEBPASSWORD: ${WEB_PASSWORD} # Set the Pi-hole admin password