[WIP] Caddy v2 文档的中文翻译,派生自 https://github.com/caddyserver/website
https://caddy.d10n.wholetrans.org
- HTML 58.3%
- CSS 25%
- JavaScript 16.7%
| .github | Create FUNDING.yml | |
| demo | Add Caddyfile for on-demand TLS demo | |
| src | Disable Agolia Integration for now | |
| .editorconfig | Finish documenting Caddy 2.8.0 features ( #419 ) | |
| .gitignore | Initial commit | |
| Caddyfile | Updated for v2.8.0 ( #389 ) | |
| Caddyfile.zh | Add zh Caddyfile + zh-specific resources | |
| README.md | develop: Implementing placeholders ( #409 ) | |
The Caddy Website
This is the source of the Caddy website, caddyserver.com.
Requirements
- Caddy v2.7.6 or newer (installed in your PATH as
caddy) - To display the retro hit counter (just for fun), the caddy-hitcounter plugin. Then uncomment the relevant lines in the Caddyfile.
Quick start
git clone https://github.com/caddyserver/website.gitcd websitecaddy run
Your first time, you may be prompted for a password. This is so Caddy can serve the site over local HTTPS. If you can't bind to low ports, change the address at the top of the Caddyfile, for example localhost:2015.
You can then load https://localhost (or whatever address you configured) in your browser.
Docker
You can run rootless with docker with
docker stop caddy-website || true && docker rm caddy-website || true
docker run --name caddy-website -it -p 8443:443 -v ./:/wd caddy sh -c "cd /wd && caddy run"
This will allow you to connect to https://localhost:8443