2020-07-01 07:52:41 -07:00
|
|
|
#!/bin/bash
|
|
|
|
(r53) {
|
|
|
|
tls {
|
|
|
|
dns route53 {
|
|
|
|
max_retries 10
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
(errors) {
|
|
|
|
handle_errors {
|
|
|
|
rewrite * /{http.error.status_code}.html
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-26 13:34:42 -07:00
|
|
|
https://example.kebler.net {
|
2020-07-01 07:52:41 -07:00
|
|
|
import r53
|
2020-10-26 10:43:32 -07:00
|
|
|
root * /opt/caddy/example-web
|
2020-10-27 10:11:42 -07:00
|
|
|
templates
|
2020-07-01 07:52:41 -07:00
|
|
|
file_server
|
2020-10-27 10:11:42 -07:00
|
|
|
redir / /index.md
|
|
|
|
redir /index.html /index.md
|
|
|
|
@mdcheck path *.md
|
|
|
|
rewrite @mdcheck /template.html
|
2020-07-01 07:52:41 -07:00
|
|
|
import errors
|
|
|
|
}
|