Mika Bomm
b40fe970b7
caddy is now fully functional only nitpick is that 444 is always required and docker build for the porkbun support
42 lines
739 B
Caddyfile
42 lines
739 B
Caddyfile
# GLOBAL CONFIGURATIONS
|
|
{
|
|
http_port 81
|
|
https_port 444
|
|
# readd later already rate limited :(
|
|
email mika.bomm@outlook.com
|
|
#acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
|
|
acme_dns porkbun {
|
|
api_key {$PORKBUN_API_KEY} # dont hardcode this please
|
|
api_secret_key {$PORKBUN_API_SECRET_KEY} #dont hardcode this please
|
|
}
|
|
|
|
# auto_https off
|
|
# Done for debugging
|
|
}
|
|
|
|
# SNIPPETS
|
|
(logging) {
|
|
log {
|
|
output file /var/log/caddy.log
|
|
format json
|
|
}
|
|
}
|
|
|
|
pdf2.mixel.cloud {
|
|
reverse_proxy 192.168.178.230:55556
|
|
}
|
|
|
|
https://mini1.docker.local {
|
|
import logging
|
|
reverse_proxy http://192.168.178.230:55556
|
|
}
|
|
|
|
http://192.168.178.230 {
|
|
import logging
|
|
reverse_proxy http://192.168.178.230:55556
|
|
}
|
|
|
|
:81 {
|
|
respond "Hello, World!"
|
|
}
|