mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -04:00

Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com> Co-authored-by: Francis Lavoie <lavofr@gmail.com> Co-authored-by: Nebez Briefkani <me@nebezb.com> Co-authored-by: Mohammed Al Sahaf <mohammed@caffeinatedwonders.com>
28 lines
677 B
Caddyfile
28 lines
677 B
Caddyfile
localhost
|
|
|
|
root * src
|
|
|
|
file_server
|
|
templates {
|
|
extensions {
|
|
# 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
|
|
|
|
try_files {path}.html {path}
|
|
|
|
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
|
|
|
|
redir /docs/caddyfile/directives/basicauth /docs/caddyfile/directives/basic_auth 308
|
|
redir /docs/caddyfile/directives/skip_log /docs/caddyfile/directives/log_skip 308
|
|
|
|
reverse_proxy /api/* localhost:4444
|