1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

caddy: add page (#6115)

This commit is contained in:
ddgond 2021-06-12 10:01:33 -04:00 committed by GitHub
parent aebd17a6cb
commit cd5fccfcbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
pages/common/caddy.md Normal file
View file

@ -0,0 +1,28 @@
# caddy
> A powerful, enterprise-ready, open source web server with automatic HTTPS, written in Go.
> More information: <https://caddyserver.com>.
- Start Caddy in the foreground:
`caddy run`
- Start Caddy with the specified Caddyfile:
`caddy run --config {{path/to/Caddyfile}}`
- Start Caddy in the background:
`caddy start`
- Stop a background Caddy process:
`caddy stop`
- Run a simple file server on the specified port with a browsable interface:
`caddy file-server --listen :{{8000}} --browse`
- Run a reverse proxy server:
`caddy reverse-proxy --from :{{80}} --to localhost:{{8000}}`