w00t this Caddyfile was able to work in development!
modified: .gitignore new file: Caddyfile
This commit is contained in:
parent
36930dffdd
commit
35da09bf3c
2 changed files with 26 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -27,3 +27,5 @@ coverage
|
|||
test
|
||||
|
||||
*.dkim.key
|
||||
|
||||
caddy
|
||||
|
|
|
|||
24
Caddyfile
Normal file
24
Caddyfile
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue