Update Caddyfile

Most people won't have the caddy-hitcounter plugin installed.
This commit is contained in:
Matthew Holt 2023-12-11 10:15:21 -07:00
parent 07c51663ab
commit c8ef91c47c
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
3 changed files with 6 additions and 35 deletions

View file

@ -5,10 +5,11 @@ root * src
file_server file_server
templates { templates {
extensions { extensions {
hitCounter { # Uncomment this if you have the caddy-hitcounter plugin (https://github.com/mholt/caddy-hitcounter):
style bright_green # hitCounter {
pad_digits 6 # style bright_green
} # pad_digits 6
# }
} }
} }
encode zstd gzip encode zstd gzip

View file

@ -7,7 +7,7 @@ This is the source of the Caddy website, [caddyserver.com](https://caddyserver.c
## Requirements ## Requirements
- Caddy v2.7.6 or newer (installed in your PATH as `caddy`) - 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 ## Quick start

View file

@ -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
}