docker-vm-compose/caddy/Caddyfile

62 lines
1 KiB
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
2024-07-27 17:52: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-07-27 17:52:29 +02:00
#Debugging stuff
#acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
2024-07-23 22:39:17 +02:00
# auto_https off
}
# SNIPPETS
(logging) {
log {
output file /var/log/caddy.log
format json
}
}
pdf2.mixel.cloud {
2024-07-27 17:52:29 +02:00
import logging
reverse_proxy 192.168.178.230:55556
}
2024-07-23 22:39:17 +02:00
code-server.mini1.docker.local {
2024-07-27 22:24:43 +02:00
import logging
reverse_proxy 192.168.178.230:8443
}
2024-08-01 10:18:12 +02:00
ddns.mini1.docker.local {
import logging
reverse_proxy 192.168.178.230:55555
}
doozle.mini1.docker.local {
import logging
reverse_proxy 192.168.178.230:60345
}
ha.mini1.docker.local {
import logging
reverse_proxy 192.168.178.230:8123
}
https://mini1.docker.local {
2024-07-23 22:39:17 +02:00
reverse_proxy http://192.168.178.230:55556
}
http://192.168.178.230 {
reverse_proxy http://192.168.178.230:55556
}
:81 {
respond "Hello, World!"
}