added Transmission, added VPS-caddy files

This commit is contained in:
Elias Gasparis 2025-04-17 13:52:29 +08:00
parent 66b52e0950
commit 9c6da58b21
8 changed files with 87 additions and 5 deletions

30
VPS-caddy/Caddyfile Normal file
View file

@ -0,0 +1,30 @@
{
email youremail@email.com
}
*.home.mydomain.com {
vars {
# IP address of My Tailscale Server
tailscale_ip 100.0.0.0
}
tls {
dns gandi APIKEYHERE
}
@jellyfin host jellyfin.home.mydomain.com
handle @jellyfin {
reverse_proxy {vars.tailscale_ip}:8096
}
@books host books.home.mydomain.com
handle @books {
reverse_proxy {vars.tailscale_ip}:8083
}
# Fallback for otherwise unhandled domains
handle {
abort
}
}

8
VPS-caddy/Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM caddy:2.8.4-builder-alpine AS builder
RUN xcaddy build \
--with github.com/caddy-dns/gandi
FROM caddy:2.8.4-alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy

7
VPS-caddy/README.md Normal file
View file

@ -0,0 +1,7 @@
# Run Your Homelab Behind your VPS
https://blog.arkadi.one/p/run-your-homelab-behind-your-vps/
## Files in this directory:
- Dockerfile - to build a custom Caddy executable with gandi registrar module
- docker-compose.yml - to run Caddy
- Caddyfile - your caddy settings for a wildcard DNS

View file

@ -0,0 +1,23 @@
services:
caddy:
build: .
container_name: Caddy
cap_add:
- NET_ADMIN
ports:
- 80:80
- 443:443
- 443:443/udp
env_file:
- secrets.env
volumes:
# I don't like using Docker volumes
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./data:/data
- ./config:/config
restart: unless-stopped
networks:
- caddy
networks:
caddy:
name: caddy