From cd5fccfcbb23e87d4908c810b2b5cf593f6243e9 Mon Sep 17 00:00:00 2001 From: ddgond Date: Sat, 12 Jun 2021 10:01:33 -0400 Subject: [PATCH] caddy: add page (#6115) --- pages/common/caddy.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/caddy.md diff --git a/pages/common/caddy.md b/pages/common/caddy.md new file mode 100644 index 000000000..1674d8ef8 --- /dev/null +++ b/pages/common/caddy.md @@ -0,0 +1,28 @@ +# caddy + +> A powerful, enterprise-ready, open source web server with automatic HTTPS, written in Go. +> More information: . + +- 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}}`