caddy-retired/conf/example.conf

27 lines
385 B
Bash

#!/bin/bash
(r53) {
tls {
dns route53 {
max_retries 10
}
}
}
(errors) {
handle_errors {
rewrite * /{http.error.status_code}.html
file_server
}
}
https://example.kebler.net {
import r53
root * /opt/caddy/example-web
templates
file_server
redir / /index.md
redir /index.html /index.md
@mdcheck path *.md
rewrite @mdcheck /template.html
import errors
}