diff --git a/Caddyfile b/Caddyfile index 35de961..4bb9ed9 100644 --- a/Caddyfile +++ b/Caddyfile @@ -5,10 +5,11 @@ root * src file_server templates { extensions { - hitCounter { - style bright_green - pad_digits 6 - } + # Uncomment this if you have the caddy-hitcounter plugin (https://github.com/mholt/caddy-hitcounter): + # hitCounter { + # style bright_green + # pad_digits 6 + # } } } encode zstd gzip diff --git a/README.md b/README.md index d805baa..8b85e6e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This is the source of the Caddy website, [caddyserver.com](https://caddyserver.c ## Requirements - Caddy v2.7.6 or newer (installed in your PATH as `caddy`) -- To display the retro hit counter (just for fun), the [caddy-hitcounter](https://github.com/mholt/caddy-hitcounter) plugin. +- To display the retro hit counter (just for fun), the [caddy-hitcounter](https://github.com/mholt/caddy-hitcounter) plugin. Then uncomment the relevant lines in the Caddyfile. ## Quick start diff --git a/new/Caddyfile b/new/Caddyfile deleted file mode 100644 index f0d0ffc..0000000 --- a/new/Caddyfile +++ /dev/null @@ -1,30 +0,0 @@ -{ - 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 -}