From 8728c11beeac8858a567837c395bba9092866bca Mon Sep 17 00:00:00 2001 From: Mikko Ohtamaa Date: Tue, 2 Nov 2021 21:35:55 +0100 Subject: [PATCH] Adding reverse proxy and Let's Encrypt example You can do both reverse proxy and getting a Let's Encrypt certificate in a single command. --- src/docs/markdown/quick-starts/reverse-proxy.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/docs/markdown/quick-starts/reverse-proxy.md b/src/docs/markdown/quick-starts/reverse-proxy.md index 965a22f..a667fe6 100644 --- a/src/docs/markdown/quick-starts/reverse-proxy.md +++ b/src/docs/markdown/quick-starts/reverse-proxy.md @@ -30,6 +30,10 @@ If you don't have permission to bind to low ports, you can proxy from a higher p Then make a request to [localhost](https://localhost) (or whatever address you specified in `--from`) to see it working! +You can also automatically bind `caddy` reverse proxy to a public IP address and have a Let's Encrypt certificate issued for. +This command will automatically issue a TLS certificate for `mywebsite.example.com` and start reverse proxy. + +
caddy reverse-proxy --from https://mywebsite.example.com --to 127.0.0.1:9000
## Caddyfile @@ -60,4 +64,4 @@ Make sure to [reload](/docs/command-line#caddy-reload) Caddy (or stop and start Now you can access the proxy at [localhost:2016](http://localhost:2016). -There is a lot more you can do with the [`reverse_proxy` directive](/docs/caddyfile/directives/reverse_proxy). \ No newline at end of file +There is a lot more you can do with the [`reverse_proxy` directive](/docs/caddyfile/directives/reverse_proxy).