2020-03-14 10:38:42 -06:00
|
|
|
localhost
|
2020-01-24 12:47:52 -07:00
|
|
|
|
|
|
|
root * src
|
|
|
|
|
|
|
|
file_server
|
2023-12-11 10:07:34 -07:00
|
|
|
templates {
|
|
|
|
extensions {
|
2023-12-11 10:15:21 -07:00
|
|
|
# Uncomment this if you have the caddy-hitcounter plugin (https://github.com/mholt/caddy-hitcounter):
|
|
|
|
# hitCounter {
|
|
|
|
# style bright_green
|
|
|
|
# pad_digits 6
|
|
|
|
# }
|
2023-12-11 10:07:34 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
encode zstd gzip
|
2020-05-02 23:26:37 -06:00
|
|
|
|
|
|
|
try_files {path}.html {path}
|
2020-01-24 12:47:52 -07:00
|
|
|
|
2023-12-11 10:07:34 -07:00
|
|
|
redir /docs/json /docs/json/
|
|
|
|
redir /docs/modules /docs/modules/
|
|
|
|
rewrite /docs/json/* /docs/json/index.html
|
2020-03-21 21:03:29 -06:00
|
|
|
rewrite /docs/modules/* /docs/modules/index.html
|
2023-12-11 10:07:34 -07:00
|
|
|
rewrite /docs/* /docs/index.html
|
2020-01-24 12:47:52 -07:00
|
|
|
|
2024-05-29 18:18:32 -04:00
|
|
|
redir /docs/caddyfile/directives/basicauth /docs/caddyfile/directives/basic_auth 308
|
|
|
|
redir /docs/caddyfile/directives/skip_log /docs/caddyfile/directives/log_skip 308
|
|
|
|
|
2020-01-24 12:47:52 -07:00
|
|
|
reverse_proxy /api/* localhost:4444
|