mirror of
https://github.com/caddyserver/website.git
synced 2025-04-26 15:06:17 -04:00
30 lines
370 B
Caddyfile
30 lines
370 B
Caddyfile
{
|
|
debug
|
|
}
|
|
|
|
localhost {
|
|
file_server
|
|
templates {
|
|
extensions {
|
|
hitCounter {
|
|
style bright_green
|
|
pad_digits 6
|
|
}
|
|
}
|
|
}
|
|
|
|
try_files {path}.html {path}
|
|
|
|
handle_path /temporary-markdown-proxy/* {
|
|
reverse_proxy 127.0.0.1:10434
|
|
}
|
|
}
|
|
|
|
:10434 {
|
|
log
|
|
bind 127.0.0.1
|
|
root ../src/docs/markdown
|
|
uri strip_prefix /docs
|
|
try_files {path}.md {path}
|
|
file_server
|
|
}
|