caddy-website/Caddyfile

31 lines
512 B
Text
Raw Normal View History

2020-03-14 10:38:42 -06:00
localhost
2020-01-24 12:47:52 -07:00
root * src
file_server
templates
encode gzip
try_files {path}.html {path}
2020-01-24 12:47:52 -07:00
redir /docs/json /docs/json/
redir /docs/modules /docs/modules/
rewrite /docs/json/* /docs/json/index.html
rewrite /docs/modules/* /docs/modules/index.html
rewrite /docs/* /docs/index.html
2020-01-24 12:47:52 -07:00
reverse_proxy /api/* localhost:4444
2020-05-17 17:16:44 -04:00
handle_errors {
@error {
expression {http.error.status_code} in [404, 500]
}
handle @error {
rewrite 404.html
root * src
encode gzip
templates
file_server
}
}