mirror of
https://github.com/caddyserver/website.git
synced 2025-04-20 12:15:08 -04:00
Update Caddyfile
Most people won't have the caddy-hitcounter plugin installed.
This commit is contained in:
parent
07c51663ab
commit
c8ef91c47c
3 changed files with 6 additions and 35 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue