mirror of
https://github.com/caddyserver/website.git
synced 2025-06-20 05:04:56 -04:00
Move new site into src folder
This commit is contained in:
parent
c0d7ca3f22
commit
b4c4b113f6
199 changed files with 4768 additions and 9104 deletions
19
Caddyfile
19
Caddyfile
|
@ -3,15 +3,22 @@ localhost
|
|||
root * src
|
||||
|
||||
file_server
|
||||
templates
|
||||
encode gzip
|
||||
templates {
|
||||
extensions {
|
||||
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
|
||||
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
|
||||
rewrite /docs/* /docs/index.html
|
||||
|
||||
reverse_proxy /api/* localhost:4444
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue