w00t this Caddyfile was able to work in development!

modified:   .gitignore
	new file:   Caddyfile
This commit is contained in:
Russell Ballestrini 2022-06-29 13:19:01 -04:00
parent 36930dffdd
commit 35da09bf3c
2 changed files with 26 additions and 0 deletions

2
.gitignore vendored
View file

@ -27,3 +27,5 @@ coverage
test
*.dkim.key
caddy

24
Caddyfile Normal file
View file

@ -0,0 +1,24 @@
# download caddy.
#
# wget "https://caddyserver.com/api/download?os=linux&arch=amd64&idempotency=73105841751083" -O caddy; chmod 755 caddy;
#
# This is the global config for all sites defined in this Caddyfile.
{
# https://caddyserver.com/docs/caddyfile/options#on-demand-tls
on_demand_tls {
ask http://localhost:6001/ask-for-on-demand-tls
interval 2m
burst 5
}
#log {
# output file out.log
# level DEBUG
#}
}
https:// {
tls {
on_demand
}
reverse_proxy localhost:6001
}