docker-vm-compose/caddy/Caddyfile

47 lines
933 B
Caddyfile
Raw Normal View History

2024-07-23 22:39:17 +02:00
# GLOBAL CONFIGURATIONS
{
2024-07-27 17:52:29 +02:00
#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
2024-08-02 23:31:29 +02:00
email {$CADDY_ACME_EMAIL}
acme_dns porkbun {
2024-07-27 17:52:29 +02:00
api_key {$PORKBUN_API_KEY}
api_secret_key {$PORKBUN_API_SECRET_KEY}
}
2024-07-23 22:39:17 +02:00
2024-09-05 15:30:40 +02:00
# Certificates from letsencrypt
acme_ca https://acme-v02.api.letsencrypt.org/directory # Production - lower rate limit
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory - Staging - higher rate limit
2024-08-03 23:55:57 +02:00
# This makes every subdomain used for http only
2024-07-23 22:39:17 +02:00
# auto_https off
2024-09-05 15:30:40 +02:00
# Toggles the Debug flag
debug
2024-07-23 22:39:17 +02:00
}
# SNIPPETS
(logging) {
log {
output file /var/log/caddy.log
format json
}
}
2024-08-03 23:55:57 +02:00
# Import service-specific Caddyfiles
import /etc/caddy/services/*.caddy
2024-07-23 22:39:17 +02:00
2024-08-03 23:55:57 +02:00
mini1.docker.local {
reverse_proxy 192.168.178.230:55556
2024-07-23 22:39:17 +02:00
}
2024-08-02 23:28:33 +02:00
2024-08-03 23:55:57 +02:00
pihole.local {
2024-08-02 23:28:33 +02:00
handle_path /* {
rewrite * /admin{path}
reverse_proxy 192.168.178.244
}
2024-08-02 23:31:29 +02:00
}