caddy switchover #8
15
compose.yaml
15
compose.yaml
@@ -138,6 +138,21 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backnet
|
- backnet
|
||||||
|
|
||||||
|
stump:
|
||||||
|
image: aaronleopold/stump
|
||||||
|
container_name: stump
|
||||||
|
# Replace my paths (prior to the colons) with your own
|
||||||
|
volumes:
|
||||||
|
- ./stump:/config
|
||||||
|
- /mnt/hub:/data
|
||||||
|
#ports:
|
||||||
|
# - 10801:10801
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
||||||
sshtun:
|
sshtun:
|
||||||
build:
|
build:
|
||||||
context: sshtun
|
context: sshtun
|
||||||
|
|||||||
@@ -50,3 +50,24 @@ gut.oily.dad {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Subdomain for Stump (comics/books) - book.oily.dad
|
||||||
|
book.oily.dad {
|
||||||
|
# Root directory (not strictly needed for reverse proxy)
|
||||||
|
root * /var/www/html
|
||||||
|
|
||||||
|
# Use existing SSL certificates
|
||||||
|
tls /etc/letsencrypt/live/oily.dad/fullchain.pem /etc/letsencrypt/live/oily.dad/privkey.pem
|
||||||
|
|
||||||
|
# Reverse proxy to Stump
|
||||||
|
reverse_proxy http://stump:10801 {
|
||||||
|
# WebSocket support for Stump (if needed)
|
||||||
|
header_up Connection {>Connection}
|
||||||
|
header_up Upgrade {>Upgrade}
|
||||||
|
|
||||||
|
# Preserve original headers
|
||||||
|
header_up Host {host}
|
||||||
|
header_up X-Real-IP {remote}
|
||||||
|
# X-Forwarded-For and X-Forwarded-Proto are set automatically by Caddy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user