docker-vm-compose/caddy/Caddyfile
Mika Bomm 4bc7c8949c never forget either
Caddyfile,
Firewall,
Docker compose
ALL can fail
2024-08-05 18:34:16 +02:00

45 lines
869 B
Caddyfile

# GLOBAL CONFIGURATIONS
{
#Define default port to reverse proxy on to 81 / 444 since 80 / 443 is already used
#http_port 81
#https_port 444
http_port 80
https_port 443
email {$CADDY_ACME_EMAIL}
acme_dns porkbun {
api_key {$PORKBUN_API_KEY}
api_secret_key {$PORKBUN_API_SECRET_KEY}
}
# Used for Debugging
# This will request a certificate from staging and not from prod
# Staging has a higher rate limit
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
# This makes every subdomain used for http only
# auto_https off
}
# SNIPPETS
(logging) {
log {
output file /var/log/caddy.log
format json
}
}
# Import service-specific Caddyfiles
import /etc/caddy/services/*.caddy
mini1.docker.local {
reverse_proxy 192.168.178.230:55556
}
pihole.local {
handle_path /* {
rewrite * /admin{path}
reverse_proxy 192.168.178.244
}
}